摘要:
Compare two version numbersversion1andversion2.Ifversion1>version2return 1, ifversion1len2){ for(int i=len2;i0?1:-1; return 0; }} 阅读全文
posted @ 2015-08-02 15:22
~每天进步一点点~
阅读(127)
评论(0)
推荐(0)
摘要:
Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try to solve it in linear time/space.Return 0 ... 阅读全文
posted @ 2015-08-02 12:30
~每天进步一点点~
阅读(141)
评论(0)
推荐(0)
摘要:
A peak element is an element that is greater than its neighbors.Given an input array wherenum[i] ≠ num[i+1], find a peak element and return its index.... 阅读全文
posted @ 2015-08-02 11:20
~每天进步一点点~
阅读(130)
评论(0)
推荐(0)
浙公网安备 33010602011771号