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 (ie... Read More
posted @ 2015-08-22 22:53 sunalive Views(111) Comments(0) Diggs(0)
Given an array of integers, find two numbers such that they add up to a specific target number. The function twoSum should return indices of the two n Read More
posted @ 2015-08-22 21:42 sunalive Views(122) Comments(0) Diggs(0)