题目链接:https://leetcode.com/problems/string-to-integer-atoi/
Implement atoi to convert a string to an integer.
Hint: Carefully consider all possible input cases. If you want a challenge, ple...
分类:
其他好文 时间:
2015-06-21 14:30:06
阅读次数:
142
刚刚在某网站看到”MIT评选出世界上最具智慧50强公司 苹果榜上无名“,看了半天居然没名单,没名单你让我看什么!怒去墙外找来了名单,大家慢慢看……以下是2013年的名单:以下是2012年的名单:以下是2011年的名单:(当时是文字而非图片)A123 Systems
Why: Lithium-ion batteries make electric cars possible at mass-marke...
分类:
其他好文 时间:
2015-06-21 13:10:33
阅读次数:
393
1、本文将使用void lua_pushcclosure (lua_State *L, lua_CFunction fn, int n); 来讲解在Lua Code中注册C函数,其他注册方式将在下一篇文章中讲解。
When a C function is created, it is possible to associate some values with it, thus crea...
分类:
编程语言 时间:
2015-06-20 17:12:01
阅读次数:
137
原题是找到一组数的全排列Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3]...
分类:
编程语言 时间:
2015-06-19 18:14:46
阅读次数:
167
Simple-As-Possible computer introduces all the cruicial ideas behind computer operation without burying you in unnecessary detail. The figure show...
分类:
其他好文 时间:
2015-06-18 18:39:58
阅读次数:
173
Two bored soldiers are playing card war. Their card deck consists of exactly n cards, numbered from 1 to n, all
values are different. They divide cards between them in some manner, it's possible tha...
分类:
其他好文 时间:
2015-06-18 17:23:26
阅读次数:
135
Two soldiers are playing a game. At the beginning first of them chooses a positive integer n and gives it to the second soldier. Then
the second one tries to make maximum possible number of rounds. ...
分类:
其他好文 时间:
2015-06-18 17:20:26
阅读次数:
116
Ordering Tasks
John has n tasks to do. Unfortunately, the tasks are not independent and the execution of one task is
only possible if other tasks have already been executed.
Input
The in...
分类:
编程语言 时间:
2015-06-18 09:47:53
阅读次数:
136
Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],[3,...
分类:
其他好文 时间:
2015-06-18 08:15:07
阅读次数:
99
Next Permutation
题目:
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.
If such arrangement is not possible, it must rearran...
分类:
其他好文 时间:
2015-06-15 22:16:42
阅读次数:
114