LeetCode
liang_biao
这个作者很懒,什么都没留下…
展开
-
LeetCode: 238. Product of Array Except Self
word2vec 是 Google 于 2013 年开源推出的一个用于获取 word vector 的工具包,它简单、高效,因此引起了很多人的关注。由于 word2vec 的作者 Tomas Mikolov 在两篇相关的论文 [3,4] 中并没有谈及太多算法细节,因而在一定程度上增加了这个工具包的神秘感。一些按捺不住的人于是选择了通过解剖源代码的方式来一窥究竟,出于好奇,我也成为了他们中的一员。读完原创 2016-10-26 17:03:04 · 324 阅读 · 0 评论 -
LeetCode 121 Best Time to Buy and Sell Stock I
1)题目: 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 s原创 2016-10-27 20:14:41 · 338 阅读 · 0 评论 -
LeetCode 122 Best Time to Buy and Sell Stock II
1.题目an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy one and sell one原创 2016-10-27 20:22:24 · 355 阅读 · 0 评论 -
LeetCode 123 Best Time to Buy and Sell Stock III
1.题目 Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complete at most two transactions.Note: You may not原创 2016-10-27 20:28:49 · 346 阅读 · 0 评论