摘要:
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 complete a... 阅读全文
posted @ 2015-08-19 20:00
amazingzoe
阅读(114)
评论(0)
推荐(0)
摘要:
Note:This is an extension ofHouse Robber.After robbing those houses on that street, the thief has found himself a new place for his thievery so that h... 阅读全文
posted @ 2015-08-19 19:23
amazingzoe
阅读(128)
评论(0)
推荐(0)
摘要:
Given an array of integers, find out whether there are two distinct indicesiandjin the array such that the difference betweennums[i]andnums[j]is at mo... 阅读全文
posted @ 2015-08-19 03:43
amazingzoe
阅读(156)
评论(0)
推荐(0)
摘要:
Given an array of integers and an integerk, find out whether there are two distinct indicesiandjin the array such thatnums[i] = nums[j]and the differe... 阅读全文
posted @ 2015-08-19 02:43
amazingzoe
阅读(147)
评论(0)
推荐(0)
摘要:
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the arr... 阅读全文
posted @ 2015-08-19 00:51
amazingzoe
阅读(212)
评论(0)
推荐(0)
摘要:
Given two stringssandt, determine if they are isomorphic.Two strings are isomorphic if the characters inscan be replaced to gett.All occurrences of a ... 阅读全文
posted @ 2015-08-19 00:47
amazingzoe
阅读(200)
评论(0)
推荐(0)
浙公网安备 33010602011771号