摘要:
题目:Suppose a sorted array is rotated at some pivot unknown to you beforehand.(i.e.,0 1 2 4 5 6 7might become4 5 6 7 0 1 2).You are given a target valu... 阅读全文
posted @ 2015-04-13 20:52
hwu_harry
阅读(124)
评论(0)
推荐(0)
摘要:
题目:Follow up for "Remove Duplicates":What if duplicates are allowed at mosttwice?For example,Given sorted array A =[1,1,1,2,2,3],Your function should ... 阅读全文
posted @ 2015-04-13 19:55
hwu_harry
阅读(102)
评论(0)
推荐(0)
摘要:
问题:Given a sorted array, remove the duplicates in place such that each element appear onlyonceand return the new length.Do not allocate extra space fo... 阅读全文
posted @ 2015-04-13 19:46
hwu_harry
阅读(138)
评论(0)
推荐(0)
摘要:
题目:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find themaximum profit. You may complete... 阅读全文
posted @ 2015-04-13 14:39
hwu_harry
阅读(152)
评论(0)
推荐(0)
摘要:
题目:Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complet... 阅读全文
posted @ 2015-04-13 14:02
hwu_harry
阅读(139)
评论(0)
推荐(0)
摘要:
题目:Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction ... 阅读全文
posted @ 2015-04-13 13:51
hwu_harry
阅读(106)
评论(0)
推荐(0)

浙公网安备 33010602011771号