标签:des style blog http color os 使用 io strong
Say you have an array for which the ith element is the price of a given stock on day i.
If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock), design an algorithm to find the maximum profit.
Best Time to Buy and Sell Stock系列
标签:des style blog http color os 使用 io strong
原文地址:http://www.cnblogs.com/bugfly/p/3935107.html