1.指针数组:顾名思义,指针数组就是数组里面元素都是指针,代码如下:#include int main(int argc, const char * argv[]) { // insert code here... //printf("Hello, World!\n"); int ...
分类:
编程语言 时间:
2015-03-20 06:42:01
阅读次数:
158
Problem Description
In our daily life we often use 233 to express our feelings. Actually, we may say 2333, 23333, or 233333 ... in the same meaning. And here is the question: Suppose we have a matr...
分类:
其他好文 时间:
2015-03-20 00:00:50
阅读次数:
212
iOS 7 Development Tips, Tricks & HacksSeptember 18, 2013Like with any new iOS version there are a bunch of new tricks and hacks to work out. Here are ...
分类:
移动开发 时间:
2015-03-19 21:51:53
阅读次数:
193
Problem Description
In our daily life we often use 233 to express our feelings. Actually, we may say 2333, 23333, or 233333 … in the same meaning. And here is the question: Suppose we have a matrix ca...
分类:
其他好文 时间:
2015-03-19 14:54:01
阅读次数:
168
Very good problem to learn knapsack (complete knapsack in this case).My brutal-force solution in Python got AC too, which surprised me a bit. Here is ...
分类:
其他好文 时间:
2015-03-19 06:18:36
阅读次数:
135
Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321click to show spoilers.Have you thought about this?Here are some good questions to ask before coding. Bonus poi...
分类:
其他好文 时间:
2015-03-18 16:02:37
阅读次数:
120
Timers are for when you want to do something once in the future - tickers are for when you want to do something repeatedly at regular intervals. Here'...
分类:
其他好文 时间:
2015-03-18 13:48:35
阅读次数:
125
题意:不同国家的人站在一起,同一个国家的人相邻站,给你一个数组,表示 这个位置属于的国家有几个人,0可以是任何数字,问你能不能确定这个数组(只有一个解)解题思路:搜索解题代码: 1 // BEGIN CUT HERE 2 /* 3 4 */ 5 // END CUT HERE 6 #l...
分类:
其他好文 时间:
2015-03-18 12:10:34
阅读次数:
191
Disclaimer: Here is a complete answer taking the last version of OS X (10.9 AKA Mavericks) into account. I am aware that everything I compiled in this answer is already present in the page, but having...
分类:
系统相关 时间:
2015-03-17 21:53:23
阅读次数:
278
A . 250 Problem StatementSome people are sitting in a row. Each person came here from some country. You have a theory that people from the same countr...
分类:
其他好文 时间:
2015-03-17 21:48:36
阅读次数:
546