The question:Given a linked list, return the node where the cycle begins. If there is no cycle, returnnull.Follow up:Can you solve it without using ex...
分类:
其他好文 时间:
2015-01-20 06:09:54
阅读次数:
178
No need for a double cycle: :You are given N counters, initially set to 0, and you have two possible operations on them:increase(X) ? counter X is inc...
分类:
其他好文 时间:
2015-01-18 18:26:32
阅读次数:
222
//
//NotificationCenter.h
//Demo
//
//CreatedbyQzydeMacon15/1/17.
//Copyright(c)2015年Qzy.Allrightsreserved.
//
#import<Foundation/Foundation.h>
@interfaceNotification:NSObject
@property(retain,nonatomic,readwrite)NSDictionary*userInfo;
@property(a..
分类:
其他好文 时间:
2015-01-18 15:50:29
阅读次数:
189
本文是在学习中的总结,欢迎转载但请注明出处:http://blog.csdn.net/pistolove/article/details/42833739
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
思路:...
分类:
其他好文 时间:
2015-01-18 10:35:13
阅读次数:
157
.h文件@interface myclass:NSObject@property(nonatomic,retain)NSArray*MyArray;@end.m文件@implementation myclass-(void)viewDidLoad{ [superviewDidLoad]; _My.....
分类:
其他好文 时间:
2015-01-16 16:10:39
阅读次数:
140
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ...
分类:
其他好文 时间:
2015-01-15 11:01:23
阅读次数:
186
Given a linked list, return the node where the cycle begins. If there is no cycle, return null.
Follow up:
Can you solve it without using extra space?
/**
* Definition for singly-linked list.
*...
分类:
其他好文 时间:
2015-01-15 11:01:22
阅读次数:
236
配置好nginx+php-fpm,访问首页,提示报错:
2015/01/14 23:04:39 [error] 10964#2788: *2 rewrite or internal redirection cycle while internally redirecting to "/", client: 127.0.0.1, server: bk, request: "GET / HTTP/1...
分类:
其他好文 时间:
2015-01-15 00:34:42
阅读次数:
2115
原来简单解释过属性定义(Property) ,并且提起了简单的retain,copy,assign的区别。那究竟是有什么区别呢?assign就不用说了,因为基本上是为简单数据类型准备的,而不是NS对象们。Retain vs. Copy!!copy: 建立一个索引计数为1的对象,然后释放旧对象reta...
分类:
其他好文 时间:
2015-01-14 22:44:24
阅读次数:
167
自动引用计数ARC不是垃圾回收,而是编译器自动插入代码来减少程序员的代码输入和失误。 同时比垃圾和效率要高,因为其不影响运行时间,相当于自己管理内存。总是通过属性来管理实例变量(init/dealloc除外),在dealloc中释放所有属性。dealloc中会自动加入释放实例变量的代码,因此不必要....
分类:
移动开发 时间:
2015-01-14 19:52:25
阅读次数:
226