最近一直没有写笔记, 总感觉自己少了点什么, 也没有转载什么有用的笔记, 今天小弟特此献上一篇图片旋转和保存旋转的功能实现, 注意这是转载, 我是来当自己笔记的, 哈哈哈哈... 1 @interface ViewController () 2 { 3 UIImageView * iv; 4...
分类:
其他好文 时间:
2014-07-16 18:41:02
阅读次数:
195
ay you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete at...
分类:
其他好文 时间:
2014-07-13 23:22:16
阅读次数:
294
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 ma...
分类:
其他好文 时间:
2014-07-13 13:55:14
阅读次数:
305
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),...
分类:
其他好文 时间:
2014-07-12 17:34:34
阅读次数:
170
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 as many transactions as you like (ie, buy on...
分类:
其他好文 时间:
2014-07-12 16:31:50
阅读次数:
192
/* 先说汉若塔I(经典汉若塔问题),有三塔,A塔从小到大从上至下放有N个盘子,现在要搬到目标C上,
规则小的必需放在大的上面,每次搬一个,求最小步数。这个问题简单,DP:a[n]=a[n-1]+1+a[n-1],先把
上面的n-1个放在B上,把最大的放在目标C上,再把N-1个放回到C上即可。
现在是汉若塔II,改为四个塔,开始方程想简单了,不是最优的。
网上的一种最优解法如下:
(1)...
分类:
其他好文 时间:
2014-07-11 08:02:16
阅读次数:
365
Description
Ratio
If you ever see a televised report on stock market activity, you'll hear the anchorperson saysomething like ``Gainers outnumbered losers 14 to 9,'' which me...
分类:
其他好文 时间:
2014-07-10 23:01:17
阅读次数:
367
Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a...
分类:
其他好文 时间:
2014-07-09 23:32:44
阅读次数:
276
DashboardWatch List自选股MARKET & NEWS市场 & 新闻ALERTS警告MONEY MOVEMENTBRANCH LOCATOR网点定位TUTORIAL向导 Tradetrades交易Buy买入Sell卖出Trade Stock购买股票Trade Option购买...
分类:
移动开发 时间:
2014-07-09 00:58:51
阅读次数:
317
java的aes代码缺省不会设置IV而且采用ECB模式。WinAES需要为此做适配。...
分类:
编程语言 时间:
2014-07-06 10:37:08
阅读次数:
171