数组
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 · 157 阅读 · 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 · 175 阅读 · 0 评论 -
leetcode 56 merge intervals
Merge Intervals Medium 3494 257 Add to List Share Given 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 · 158 阅读 · 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 · 138 阅读 · 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 · 119 阅读 · 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 · 111 阅读 · 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 · 137 阅读 · 0 评论
分享