- 博客(7)
- 资源 (2)
- 收藏
- 关注
原创 190 Reverse Bits
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as0011100101
2015-05-06 23:51:17 387
原创 191 Number of 1 Bits
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight).For example, the 32-bit integer ’11' has binary representation 00000000
2015-05-06 23:46:39 321
原创 201 Bitwise AND of Numbers Range
Given a range [m, n] where 0 For example, given the range [5, 7], you should return 4.int rangeBitwiseAnd(int m, int n) { int i = 31; int tmp = 1; while(i>=0) {
2015-05-06 23:45:06 388
原创 202 Happy Number
Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer, replace the number by the sum of the squares
2015-05-06 23:43:36 344
原创 203 Remove Linked List Elements
Remove all elements from a linked list of integers that have value val.ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6Return: 1 --> 2 --> 3 --> 4 --> 5/** * Definition for singly-linke
2015-05-06 23:40:44 350
原创 205 Isomorphic Strings
Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.All occurrences of a character must be replaced with anot
2015-05-06 23:38:21 349
转载 Android 在SD和Internal memory之间移动App,具体做了什么?
Stack Overflow上有一个答案解释了系统在移动App时具体做的事。http://stackoverflow.com/questions/13043783/android-move-app-to-sdQ:Actually I want to find that what kind of items that are involved when we move the
2015-05-04 15:16:28 1535
GetPdfPageCount(获取PDF页码数)
2015-01-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人