摘要:
X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X. Each digit must be rotate 阅读全文
posted @ 2018-03-17 23:44
bonelee
阅读(517)
评论(0)
推荐(0)
摘要:
Calculate the sum of two integers a and b, but you are not allowed to use the operator + and -. Example: Given a = 1 and b = 2, return 3. 只能位运算: 0x011 阅读全文
posted @ 2018-03-17 22:17
bonelee
阅读(337)
评论(0)
推荐(0)
摘要:
Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once. Find all the elements of [1, n] 阅读全文
posted @ 2018-03-17 12:49
bonelee
阅读(176)
评论(0)
推荐(0)
摘要:
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements. For example, giv 阅读全文
posted @ 2018-03-17 09:19
bonelee
阅读(153)
评论(0)
推荐(0)
摘要:
Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) Yo 阅读全文
posted @ 2018-03-17 00:47
bonelee
阅读(200)
评论(0)
推荐(0)

浙公网安备 33010602011771号