![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数组
zyp7355
这个作者很懒,什么都没留下…
展开
-
leetcode #88merge sort array
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.Note:The number of elements initialized in nums1 and nums2 are m and n respectively.You may assume that n...原创 2020-04-16 14:17:17 · 101 阅读 · 0 评论 -
leetcode#74Search a 2D Matrix
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted from left to right.The first integer of each row i...原创 2020-04-14 11:03:09 · 118 阅读 · 0 评论 -
leetcode 56 merge intervals
Merge IntervalsMedium3494257Add to ListShareGiven a collection of intervals, merge all overlapping intervals.Example 1:Input: [[1,3],[2,6],[8,10],[15,18]]Output: [[1,6],[8,10],[15,18]]Expl...原创 2020-04-08 03:38:05 · 93 阅读 · 0 评论 -
leetcode # 49 group anagrams
Given an array of strings, group anagrams together.Example:Input: [“eat”, “tea”, “tan”, “ate”, “nat”, “bat”],Output:[[“ate”,“eat”,“tea”],[“nat”,“tan”],[“bat”]]Note:All inputs will be in lowe...原创 2020-04-04 02:54:22 · 87 阅读 · 0 评论 -
leetcode#49. Group Anagrams
Given an array of strings, group anagrams together.Example:Input: [“eat”, “tea”, “tan”, “ate”, “nat”, “bat”],Output:[[“ate”,“eat”,“tea”],[“nat”,“tan”],[“bat”]]Note:All inputs will be in lowe...原创 2020-04-04 02:16:56 · 70 阅读 · 0 评论 -
leetcode 48 # rotate image
You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Note:You have to rotate the image in-place, which means you have to modify the input 2D matrix dire...原创 2020-04-03 04:39:10 · 70 阅读 · 0 评论 -
leetcode #26 Remove Duplicates from Sorted Array
Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this by modifyin...原创 2020-03-24 06:47:52 · 89 阅读 · 0 评论