Reverse digits of an integer.
分类:
其他好文 时间:
2014-06-27 12:41:43
阅读次数:
211
Given an unsorted integer array, find the first missing positive integer.
分类:
其他好文 时间:
2014-06-27 12:39:02
阅读次数:
185
Given a roman numeral, convert it to an integer.
分类:
其他好文 时间:
2014-06-27 12:33:17
阅读次数:
179
Determine whether an integer is a palindrome. Do this without extra space.
分类:
其他好文 时间:
2014-06-27 12:28:06
阅读次数:
228
Implement atoi to convert a string to an integer.
分类:
其他好文 时间:
2014-06-27 12:08:39
阅读次数:
143
Given an array of non-negative integers, you are initially positioned at the first index of the array.
分类:
其他好文 时间:
2014-06-27 11:51:49
阅读次数:
213
Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.
分类:
其他好文 时间:
2014-06-27 11:40:49
阅读次数:
156
Triangle War
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 2685
Accepted: 1061
Description
Triangle War is a two-player game played on the following tria...
分类:
其他好文 时间:
2014-06-27 09:34:45
阅读次数:
286
题目
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 algorithm should run in O(n) time and u...
分类:
其他好文 时间:
2014-06-27 08:30:30
阅读次数:
202
上节说了没有营养的变量和常量,这玩意,都差不多,自己稍微看下就好了
Integers 整型
整数就是整数了,没有小数,整数有符号(+,-,0)或者无符号(0,+)
Swift提供了8,16,32,64位的有符号和无符号的整数,命名使用C的方式,比如,8位无符号的整型UInt8,32位有符号的整型就是Int32
Integer Bounds 整型范围
...
分类:
其他好文 时间:
2014-06-27 08:05:12
阅读次数:
272