小小程序媛 |
|
||
得之坦然,失之淡然,顺其自然,争其必然 |
2015年8月26日
摘要:
new与delete我们知道,new和delete运算符是用于动态分配和撤销内存的运算符。new的用法开辟单变量地址空间; i. 如 new int ; 指开辟一个存放数组的存储空间,返回一个指向该存储空间的地址。int *a = new int 即为将一个int类型的地址... 阅读全文
摘要:
题目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 ... 阅读全文
摘要:
题目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... 阅读全文
|
Copyright © 2024 Coding菌
Powered by .NET 8.0 on Kubernetes |