摘要:
new与delete我们知道,new和delete运算符是用于动态分配和撤销内存的运算符。new的用法开辟单变量地址空间; i. 如 new int ; 指开辟一个存放数组的存储空间,返回一个指向该存储空间的地址。int *a = new int 即为将一个int类型的地址...
阅读全文
posted @ 2015-08-26 20:01
Coding菌
阅读(830)
推荐(0)
摘要:
题目Given an unsorted integer array, find the first missing positive integer.For example, Given [1,2,0] return 3, and [3,4,-1,1] return 2.Your ...
阅读全文
posted @ 2015-08-26 17:31
Coding菌
阅读(105)
推荐(0)
摘要:
题目The count-and-say sequence is the sequence of integers beginning as follows: 1, 11, 21, 1211, 111221, …1 is read off as “one 1” or 11. 11 i...
阅读全文
posted @ 2015-08-26 11:14
Coding菌
阅读(164)
推荐(0)