码迷,mamicode.com
首页 >  
搜索关键字:car recorder    ( 3461个结果
CC150 9.5
9.5Givenasortedarrayofstringswhichisinterspersedwithemptystrings,writeamethodtofindthelocationofagivenstring.Example:find“ball”in[“at”,“”,“”,“”,“ball”,“”,“”,“car”,“”,“”,“dad”,“”,“”]willreturn4Example:find“ballcar”in[“at”,“”..
分类:其他好文   时间:2014-12-05 19:50:00    阅读次数:135
OC--内存管理总结
一、计数器的基本操作1> retain : +12> release :-13> retainCount : 获得计数器二、set方法的内存管理1> set方法的实现- (void)setCar:(Car *)car{ if ( _car != car ) { [_car ...
分类:其他好文   时间:2014-12-05 10:37:29    阅读次数:144
事件的使用
1.定义事件参数public class CarInfoEventArgs:EventArgs{ public string Car{get;private set;} public CarInfoEventArgs(string car){Car=car;}}2.事件源public class.....
分类:其他好文   时间:2014-12-04 09:57:28    阅读次数:192
leetcode[125] Valid Palindrome
判断一个字符串是不是回文,忽略其中的非数字和非字母,例如符号和空格不考虑。For example,"A man, a plan, a canal: Panama"is a palindrome."race a car"isnota palindrome.Note:Have you consider ...
分类:其他好文   时间:2014-12-04 00:53:19    阅读次数:227
[LeetCode]Valid Palindrome
Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases. For example, "A man, a plan, a canal: Panama" is a palindrome. "race a car" is not a ...
分类:其他好文   时间:2014-12-03 23:34:37    阅读次数:396
Gas Station
There areNgas stations along a circular route, where the amount of gas at stationiisgas[i].You have a car with an unlimited gas tank and it costscost[...
分类:其他好文   时间:2014-12-03 14:01:14    阅读次数:142
[SICP] [CH 2.2] 层次性数据和闭包性质
2.2.2层次性结构计算叶节点(leaves tree) = (leaves (car tree)) + (leaves (cdr tree)),(leaves leave) = 1;; 计算tree中叶节点数量(define (leaves tree) (cond ((null? tree) 0....
分类:其他好文   时间:2014-12-03 13:57:09    阅读次数:187
CD(01背包)
CD  You have a long drive by car ahead. You have a tape recorder, but unfortunately your best music is on CDs. You need to have it on tapes so the problem to solve is: you have a tape N m...
分类:其他好文   时间:2014-12-01 22:32:19    阅读次数:228
匿名对象
class Car{ int num; String color; void run() { System.out.println(num+"..."+color); }}new Car().num = 5;匿名对象:没有名字的对象new Car(...
分类:其他好文   时间:2014-12-01 00:42:21    阅读次数:229
设计模式之SOLID原则再回首
这是一篇关于回顾设计模式SOLID五大原则的文章,我非常喜欢文章中的例子,每个例子都是我精选了描述模式的,通过Modom讲述了单一职责原则、通过加减法计算器讲述了开闭原则、通过企鹅动物讲述了里氏替换原则、通过Driver和Car实现了依赖倒置原则,最后讲述了接口隔离原则.希望文章对大家有所帮助,尤其是学习设计模式的同学和代码写得不太规范或重构的同学,如果有错误或不足之处,还请海涵~...
分类:其他好文   时间:2014-11-29 21:45:19    阅读次数:287
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!