
LeetCode
tim_simle
男人就是要受得了委屈,忍得了痛苦,耐得了孤独,扛得起误解
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
LeeCode: Remove Element
Title: Remove Element原创 2014-08-06 16:40:44 · 452 阅读 · 0 评论 -
LeetCode:Best Time to Buy and Sell Stock
TielBest Time to Buy and Sell Stock 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, b原创 2014-08-06 11:36:35 · 398 阅读 · 0 评论 -
LeetCode: Best Time to Buy and Sell Stock I、II、III
Title: 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. Not原创 2014-09-05 17:09:21 · 543 阅读 · 0 评论 -
LeetCode: Reorder List
Given a singly linked list L: L0→L1→…→Ln-1→Ln, reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→… You must do this in-place without altering the nodes' values. For example, Given {1,2,3,4}, reorder it to原创 2014-08-29 15:54:02 · 462 阅读 · 0 评论