what is difference between NSNotification and protocol? (通知和协议的不同之处?)我想大家都知道这个东西怎么用,但是更深层次的思考可能就比较少了吧,众所周知就是代理是一对一的,但是通知是可以多对多的.但是为什么是这个样子,有没有更深的思考过这个...
分类:
移动开发 时间:
2015-04-10 21:42:50
阅读次数:
572
https://leetcode.com/problems/maximum-gap/Given an unsorted array, find the maximum difference between the successive elements in its sorted form.Try ...
分类:
其他好文 时间:
2015-04-10 17:45:05
阅读次数:
176
关于这三者的区别已经是老话题了,上stackoverflow看到目前最中肯简洁的回答
Mutability Difference:
String is immutable,
if you try to alter their values, another object gets created, whereas StringBuffer and StringBuilder...
分类:
其他好文 时间:
2015-04-10 11:32:47
阅读次数:
116
/*** Sets the X rotation (angle) of the node in degrees which performs a horizontal rotational skew.** The difference between `setRotationalSkew()` an...
1.题目描述:点击打开链接
2.解题思路:本题利用暴力搜索法解决。
3.代码:
#define _CRT_SECURE_NO_WARNINGS
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#includ...
分类:
其他好文 时间:
2015-04-08 09:13:54
阅读次数:
124
题目描述
Do you remember the game in which we find difference among several similar pictures? Now we change it into digital version. There are N digits, same or different. Please find how many differen...
分类:
其他好文 时间:
2015-04-08 09:13:26
阅读次数:
158
题意:有Ga、Gb两堆数字,初始时两堆数量相同。从一一堆中移一一个数字到另一一堆的花费定义为两堆之间数量差的绝对值,初始时共有钱C。求移动后Ga的最小小值减Gb的最大大值可能的最大大值。思路:假如有足足够钱移动,那么Ga的最大大值和Gb的最小小值应该是两堆合并后排序中相邻的两数。那么我们就枚举这个数...
分类:
其他好文 时间:
2015-04-05 11:42:20
阅读次数:
123
Digimaster 3 and DigiProg 3 both are branded and respected odometer correction tools on the aftermarket. What’s the difference between these two km ch...
分类:
其他好文 时间:
2015-04-03 13:08:12
阅读次数:
144
加减乘除表示运算:plus minus multiply divide和差积商表示运算结果:sum difference product quotient
分类:
系统相关 时间:
2015-04-02 14:37:42
阅读次数:
243
1 Given an integer array, adjust each integers so that the difference of every adjcent integers are not greater than a given number target.2 3 If the ...
分类:
其他好文 时间:
2015-04-02 06:37:00
阅读次数:
120