
leetcode/array
文章平均质量分 54
SUN123565
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
leetcode-59 Spiral Matrix II
问题描述地址:https://leetcode.com/problems/spiral-matrix-ii/ 描述: Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.For example, Given n = 3,You should return t原创 2016-11-04 09:48:20 · 350 阅读 · 0 评论 -
leetcode-75 Sort Colors
问题描述地址:https://leetcode.com/problems/sort-colors/ 描述: Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order原创 2016-11-05 18:06:02 · 240 阅读 · 0 评论 -
leetcode-11 Container With Most Water
问题描述地址:https://leetcode.com/problems/container-with-most-water/ 描述: Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such t原创 2016-10-01 09:37:08 · 341 阅读 · 0 评论 -
leetcode-26 Remove Duplicates from Sorted Array
问题描述地址:https://leetcode.com/problems/remove-duplicates-from-sorted-array/ 描述: Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do原创 2016-10-28 16:45:11 · 245 阅读 · 0 评论 -
Leetcode-35 Search Insert Position
问题描述地址:https://leetcode.com/problems/search-insert-position/ 描述: Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inser原创 2016-10-29 14:14:04 · 274 阅读 · 0 评论 -
堆排序 Heap Sort
Heap Sort原创 2017-12-02 09:37:20 · 419 阅读 · 0 评论