![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数组
yiayia070614
在阿里做苹果业务
展开
-
LeetCode 121 -- Best Time to Buy and Sell Stock I
Say you have an array for which the ith element is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock),原创 2016-09-11 13:41:13 · 223 阅读 · 0 评论 -
LeetCode 14 -- Longest Common Prefix
leetcode 14: Longest Common PrefixWrite a function to find the longest common prefix string amongst an array of strings.解答: 给定一组字符串,找出他们的最长公共子序列。public class Solution { public Strin原创 2016-09-11 16:15:57 · 191 阅读 · 0 评论