
LeetCode
文章平均质量分 56
herogsep
微风 细雨 晨曦 星光 在山峦之巅 在碧水之岸
展开
-
Sort Colors
题目:Sort ColorsGiven 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 red, white and blue.Here, w原创 2013-07-18 16:23:25 · 550 阅读 · 0 评论 -
First Missing Positive
First Missing PositiveGiven an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2.Your algorithm should run in O(n) time and u原创 2013-07-24 12:45:13 · 472 阅读 · 0 评论