码迷,mamicode.com
首页 >  
搜索关键字:note to self    ( 21530个结果
Leetcode | Recover Binary Search Tree
Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space is ...
分类:其他好文   时间:2014-05-17 14:45:17    阅读次数:290
HTML 捕获window.close() 并做窗口关闭前的处理工作
转自:http://www.xinotes.net/notes/note/261/ 1 2 3 10 11 12 Try close this window.13 学习一下~!~
分类:Windows程序   时间:2014-05-15 18:08:09    阅读次数:474
iOS地图及定位功能基本实现的详尽描述
首先创建一个viewController:一、添加地图1、添加MapKit,CoreLocation框架2、初始化地图视图:@property (nonatomic, strong) MKMapView *mapView; self.mapView =[[MKMapView alloc]initW....
分类:移动开发   时间:2014-05-15 17:28:10    阅读次数:348
ios 控制器 modal 学习
代码创建: 1、appdelegate 把contoller放到跟controller下 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWi...
分类:移动开发   时间:2014-05-15 14:57:06    阅读次数:456
IOS 函数内 autorelease release
在一个有reurn 返回值的函数里 如果申请了一段内存的话(alloc 或者copy) 这个时候不能够release  只能够使用autorelease 在返回到那个被接受到的指针里,由它去进行释放!! 如果是self.obj(或者某些类对应的   SomeClass.obj)这种类型的,就需要把self.去掉(因为这样子的申请出来的内存引用计数会被retain+1了) ...
分类:移动开发   时间:2014-05-15 04:40:44    阅读次数:369
LeetCode--Single Number II
Single Number II  Total Accepted: 14472 Total Submissions: 44420My Submissions Given an array of integers, every element appears three times except for one. Find that single one. Note: Y...
分类:其他好文   时间:2014-05-15 01:23:42    阅读次数:273
OpenStack_Swift源码分析——ObjectReplicator源码分析(2)
1、Replicator执行代码详细分析 上篇问中介绍了启动Replicator的具体过程,下面具体讲解Replicator的执行代码的具体实现: def replicate(self, override_devices=None, override_partitions=None): """Run a replication pass""" sel...
分类:其他好文   时间:2014-05-15 00:15:16    阅读次数:458
使用ASP.Net WebAPI构建REST服务(六)——Self-Host
Asp.Net WebAPI生成的是一个程序集,并不是独立的进程,因此,要运行的时候必须将其承载在相应的宿主上,一般比较常见的是IIS承载。很多时候,我们为了简化部署或者功能集成,需要将其承载到独立的进程上,这种方式一般称之为Self-Host,本文就简单的介绍一下WebAPI的SefHost方法。...
分类:Windows程序   时间:2014-05-14 23:44:42    阅读次数:549
Multiply Strings
Given two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-nega...
分类:其他好文   时间:2014-05-14 23:11:14    阅读次数:398
获取Polyline自相交点
背景:如果Polyline不为简单的几何图形,则求出其自相交的点。如果FromPoint和ToPoint重合也一并返回。实现逻辑:一、创建IMulitPointpTargetPoint二、判断Polyline是否首尾相接,如果首尾相接,将点加入到pTargetPoint;三、判断Polyline是否为简单的几何图形,如果不是则进行..
分类:其他好文   时间:2014-05-14 15:43:53    阅读次数:599
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!