码迷,mamicode.com
首页 >  
搜索关键字:note to self    ( 21530个结果
LeetCode: Single Number
Given an array of integers, every element appears twice except for one. Find that single one. Note: Your algorithm should have a linear runtime comple...
分类:其他好文   时间:2014-05-23 07:22:48    阅读次数:241
转: bootstrap编码规范~~useful
>> HTML:> 语法用两个空格来代替制表符(tab) -- 这是唯一能保证在所有环境下获得一致展现的方法。对于属性的定义,确保全部使用双引号,绝不要使用单引号。~~~回归html4的松散包容特性,并非xml的一种实现不要在自闭和(self-closing)元素的尾部添加斜线 -- HTML5 规...
分类:其他好文   时间:2014-05-23 03:30:09    阅读次数:334
OpenStack_Swift源码分析——创建Ring及添加设备源码详细分析
1 创建Ring 代码详细分析 在OpenStack_Swift——Ring组织架构中我们详细分析了Ring的具体工作过程,下面就Ring中增加设备,删除设备,已经重新平衡的实现过程作详细的介绍。 首先看RingBuilder类 def __init__(self, part_power, replicas, min_part_hours): #why 最大 2**32 ...
分类:其他好文   时间:2014-05-23 01:50:35    阅读次数:406
0521.使用UIWebView加载来自NetWork、Project、Documents的html、javascript文件
话不多少,直接上代码,思路还是挺简单的。 UIWebView *webView = [[UIWebView alloc]initWithFrame:self.view.frame]; // HTML文件来自Project // 步骤:path - > url - > request with url - > loadRequest NSStrin...
分类:编程语言   时间:2014-05-22 23:53:05    阅读次数:442
【LeetCode】3Sum
Given an arraySofnintegers, are there elementsa,b,cinSsuch thata+b+c= 0? Find all unique triplets in the array which gives the sum of zero.Note:Elemen...
分类:其他好文   时间:2014-05-22 16:53:52    阅读次数:173
Single Number
Given an array of integers, every element appearstwiceexcept for one. Find that single one.Note:Your algorithm should have a linear runtime complexity...
分类:其他好文   时间:2014-05-22 16:31:03    阅读次数:194
盘点iOS开发中property属性常用关键字
一、关键字说明1、@synthesize:自动生成成员变量相应的存取方法,可以使用点语法操作该变量的存取。2、@implementation: 表明类的实现 ,以@end 结束。3、self :类似java语言当中的this ,是隐藏指针 指向接受消息的对象的指针 。消息所调用的方法使用该指针参数查...
分类:移动开发   时间:2014-05-21 18:28:22    阅读次数:370
LeetCode: Combination Sum II [039]
【题目】 Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each number in C may only be used once in the combination. Note: All numbers (including target) will be ...
分类:其他好文   时间:2014-05-21 15:55:25    阅读次数:259
LeetCode: Combination Sum [038]
【题目】 Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same repeated number may be chosen from C unlimited number of times. Note: All numbers (including target) w...
分类:其他好文   时间:2014-05-21 15:21:28    阅读次数:292
LeetCode: Multiply Strings [042]
【题目】 Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large and are non-negative. 【题意】 给定用字符串表示的整数,返回两个数的乘积结果字符串。两个数字都非负,且能任意大。 【思路】 1. 考虑其中一个数是0的情况 2. 模拟乘法运算...
分类:其他好文   时间:2014-05-21 13:45:37    阅读次数:214
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!