码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
Reverse Bits
Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100), return ...
分类:其他好文   时间:2015-03-10 13:51:19    阅读次数:111
[LeetCode]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 as 001...
分类:其他好文   时间:2015-03-10 12:04:14    阅读次数:101
[LeetCode] Number of 1 Bits 位1的个数
Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theHamming weight).For example, the 32-bit in...
分类:其他好文   时间:2015-03-10 12:02:17    阅读次数:138
[leetcode] Number of 1 Bits
Number of 1 BitsWrite a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as theHamming weight).For exampl...
分类:其他好文   时间:2015-03-10 12:02:10    阅读次数:112
HRBUST 1818 石子合并问题--直线版
石子合并问题--直线版Time Limit: 1000msMemory Limit: 32768KBThis problem will be judged on HRBUST. Original ID: 1818 64-bit integer IO format: %lld...
分类:其他好文   时间:2015-03-10 11:36:09    阅读次数:137
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 algorithm should run in O(n) time and uses constant spa...
分类:其他好文   时间:2015-03-10 10:26:23    阅读次数:136
【POJ1442】【Treap】Black Box
DescriptionOur Black Box represents a primitive database. It can save an integer array and has a special i variable. At the initial moment Black Box i...
分类:其他好文   时间:2015-03-10 10:09:59    阅读次数:340
Delphi 不用标题栏移动窗体
据说有多种方法 procedure TxxxxForm.FormMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); const sc_DragMove: Integer = $F01...
分类:移动开发   时间:2015-03-10 08:58:48    阅读次数:151
[LeetCode] String to Integer (atoi) 字符串
Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ...
分类:其他好文   时间:2015-03-10 06:46:26    阅读次数:239
leetcode_num168&171_excel title&number
Given a positive integer, return its corresponding column title as appear in an Excel sheet. class Solution { public: string convertToTitle(int n) { string s; while(n){ ...
分类:其他好文   时间:2015-03-10 00:14:37    阅读次数:188
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!