
leetcode
FengGLA
当一切都看起来无济于事的时候,我去看一个石匠敲石头。他一连敲了100次,石头仍然纹丝不动。但当他敲第101次的时候,石头裂为两半。可我知道,让石头裂开的不是那最后一击,而是前面的一百次敲击的结果。
展开
-
LeetCode 75. Sort Colors
Description: 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 red, white and blue. Here, we will use t...原创 2018-03-07 19:47:15 · 372 阅读 · 0 评论 -
LeetCode 162. Find Peak Element
Description: A peak element is an element that is greater than its neighbors. Given an input array where num[i] ≠ num[i+1], find a peak element and return its index. The array may contain multiple ...原创 2018-03-07 19:45:00 · 378 阅读 · 0 评论