https://leetcode.com/problems/reverse-bits/
Reverse bits of a given 32 bits unsigned integer.
For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), ret...
分类:
其他好文 时间:
2015-04-13 00:26:40
阅读次数:
143
Coin ChangeTime Limit: 1000msMemory Limit: 32768KBThis problem will be judged onHDU. Original ID:206964-bit integer IO format:%I64d Java class name:Ma...
分类:
其他好文 时间:
2015-04-13 00:07:47
阅读次数:
200
leetcode41 First
Missing Positive
题目:
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 algorit...
分类:
其他好文 时间:
2015-04-12 22:48:14
阅读次数:
136
Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is greater or equal...
分类:
其他好文 时间:
2015-04-12 22:30:06
阅读次数:
155
Find The MultipleTime Limit: 1000MS Memory Limit: 10000K
Total Submissions: 19815 Accepted: 8048 Special Judge DescriptionGiven a positive integer n, write a program to find out a nonzero multiple...
分类:
其他好文 时间:
2015-04-12 21:13:30
阅读次数:
117
题目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 00000000000...
分类:
其他好文 时间:
2015-04-12 21:12:01
阅读次数:
130
Given a roman numeral, convert it to an integer.Input is guaranteed to be within the range from 1 to 3999.AC最快的一次。。每种字母代表一个数字。小的在左边表示右减左,小的在右边表示右加左。如I...
分类:
其他好文 时间:
2015-04-12 16:12:26
阅读次数:
100
Determine whether an integer is a palindrome. Do this without extra space.Analyse:判断一个整数是否是回文数。注意负数都不是回文数。 1 class Solution { 2 public: 3 bool isP...
分类:
其他好文 时间:
2015-04-12 14:41:36
阅读次数:
124
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.The first integer of each...
分类:
其他好文 时间:
2015-04-12 13:27:51
阅读次数:
98
Given a positive integer, return its corresponding column title as appear in an Excel sheet.
For example:
1 -> A
2 -> B
3 -> C
...
26 -> Z
27 -> AA
28 -> AB
思路:进制之间...
分类:
其他好文 时间:
2015-04-12 12:07:16
阅读次数:
101