内存管理重写dealloc方法@implementation Dog#pragma mark
当一个对象从内存中移除的时候,就会被调用- (void) dealloc{ NSLog(@"----Dog被销毁了------");
//一定要调用super的方法,写在该方法的最后 [sup...
分类:
移动开发 时间:
2014-05-23 12:03:27
阅读次数:
347
5道题目分别是:【Subsets】、【Subsets II】、【Unique Paths】、【Unique Paths II】、【Trapping Rain Water 】,由于有一些题目不需要发一整篇博文来记录,所以就将这些题目以一篇博文5道来记录。...
分类:
其他好文 时间:
2014-05-22 08:35:03
阅读次数:
348
上联:no zuo no die why you try
下联:no try no high give me five
横批: let it go。
坑爹bug:
错误写法:
0 } ">true (最后一个大括号后多出一个空格,代码啥都不会输出)
正确写法: 0 }">true 正确写法 输出结果: true...
分类:
Web程序 时间:
2014-05-22 07:42:52
阅读次数:
355
win
8.1无线网卡是好的,驱动正常。但是搜索不到附近网络但是进入opensuse完全正常,尝试重新驱动,未解。Mark 此处ps。以前没有问题。
一、High CPU试验 1、示例代码 static void Main(string[]
args) { Console.Clear(); Console.WriteLine("到命令行下,切换到windbg目录,执行adp...
分类:
数据库 时间:
2014-05-19 21:44:35
阅读次数:
578
Given n non-negative integers representing an
elevation map where the width of each bar is 1, compute how much water it is
able to trap after raining....
分类:
移动开发 时间:
2014-05-19 19:20:26
阅读次数:
332
本技术支持指南主要处理:ASCII, binary, and MAT
files.要得到MATLAB中可用来读写各种文件格式的完全函数列表,可以键入以下命令: help iofun MATLAB中有两种文件I/O程序:high
level and low level. High leve...
分类:
其他好文 时间:
2014-05-19 14:01:25
阅读次数:
393
The linear screen is a new kind of high
efficiency screening equipment which vibrates with a vibration motor. Our
company has introduced technology fr...
分类:
其他好文 时间:
2014-05-19 10:36:28
阅读次数:
282
题目来源:http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=3490题意: 给出两个集合Y
, N , 给出区间【low , high】 , 问在 这个区间有多少个这样的数,x , 满足, 集合Y中至少一个数被x 整除, 且 集合 ...
分类:
其他好文 时间:
2014-05-19 10:35:04
阅读次数:
256
题目大意:
让每天都能吃到西瓜。最少需要花多少钱。
思路分析:
dp[pos] 就表示 要让 前i天每天都有西瓜吃,最少需要花多少钱。
那么如果你买这个西瓜的话。那么这个西瓜能吃的持续时间都要更新一下。
然后再在每个西瓜的更新部分取最小的,就可以是这个点所能得到的最小值。
其实就是 dp[i] = min (dp[i] , dp[ j - k +1] + a[j]);...
分类:
其他好文 时间:
2014-05-18 08:59:29
阅读次数:
244