Algorithm
cfanrCoder
对贡献有激情,对回报有信心!
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Zigzag数组
首先了解下zigzag数组,如下图,由一个矩阵的对角线,数字按一定规律递增 求nxn的Zigzag数组? 代码如下: /* 0 1 5 6 14 15 27 28 2 4 7 13 16 26 29 42 3 8 12 17 25 30 41原创 2014-06-26 10:17:25 · 2235 阅读 · 0 评论 -
【LeetCode】Best 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, buy one and sell one share of the原创 2014-07-02 16:39:37 · 1176 阅读 · 0 评论
分享