码迷,mamicode.com
首页 >  
搜索关键字:note to self    ( 21530个结果
LeetCode ---- Merge Sorted Array
题目链接Problem discriptionGiven two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size t...
分类:其他好文   时间:2014-06-16 11:12:36    阅读次数:192
WCF之Host宿主
Self_hosting自托管宿主.过程:手动创建Host实例,把服务端点添加到Host实例上,把服务接口与Host关联.一个Host只能指定一个服务类型,但是可以添加多个服务端点,也可以打开多个Host.其中,Typeof(..)就是配置中的.在通常的企业应用中,我们很少会采用自宿主方式托管服务,...
分类:其他好文   时间:2014-06-13 07:08:14    阅读次数:374
分析视图层次
1.方法一:被隐藏的指令是recursiveDescription,你可以简单地用它对view进行检查,在view中调用recursiveDescription来打印它的继承关系。由于是私有方法,键入时不会有任何提示,注意不要输错。即在debug区域。输入 po [self.view recursi...
分类:其他好文   时间:2014-06-13 06:58:45    阅读次数:216
【转】UITableViewCell自适应高度 UILabel自适应高度和自动换行
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {// 列寬CGFloat contentWidth = self.tableView.frame.size....
分类:其他好文   时间:2014-06-12 23:17:40    阅读次数:358
LeetCode: Anagrams 题解
Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.题解: 判断字符串是否为回文构词法生成的。找出所有由同一回文构词法生成的字...
分类:其他好文   时间:2014-06-12 13:51:32    阅读次数:200
【leetcode】Merge Sorted Array
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:其他好文   时间:2014-06-10 20:44:02    阅读次数:298
[LeetCode] Single Number II
Given an array of integers, every element appears three times except for one. Find that single one.Note: Your algorithm should have a linear runtime c...
分类:其他好文   时间:2014-06-10 20:42:48    阅读次数:315
Valid Number
题目 Validate if a given string is numeric. Some examples: "0" => true " 0.1 " => true "abc" => false "1 a" => false "2e10" => true Note: It is intended for the problem statement t...
分类:其他好文   时间:2014-06-10 17:32:23    阅读次数:174
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!