码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果)
032 Longest Valid Parentheses
题目:032 Longest Valid Parentheses这道题是典型的堆栈应用class Solution: # @param {string} s # @return {integer} def longestValidParentheses(self, s): ...
分类:其他好文   时间:2015-07-14 13:18:22    阅读次数:102
120 Triangle
题目:120 Triangle这道题纯dp, 但是有一个比一下代码优化的做法,就是从底部bottomu-up dp.class Solution: # @param triangle, a list of lists of integers # @return an integer ...
分类:其他好文   时间:2015-07-14 06:04:55    阅读次数:114
[LeetCode] Excel Sheet Column Title
Question:Given a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 -> A 2 -> B 3 -> C ......
分类:其他好文   时间:2015-07-13 22:18:59    阅读次数:103
[LeetCode] Reverse Bits
Question:Reverse bits of a given 32 bits unsigned integer.For example, given input 43261596 (represented in binary as00000010100101000001111010011100)...
分类:其他好文   时间:2015-07-13 20:25:01    阅读次数:93
[LeetCode] Number of 1 Bits
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-07-13 20:09:47    阅读次数:119
[LeetCode][Java] 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...
分类:编程语言   时间:2015-07-13 18:47:35    阅读次数:148
[LeetCode] 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...
分类:移动开发   时间:2015-07-13 18:14:21    阅读次数:143
网卡远程唤醒-远程开机再配合远程控制
远程开机再配合远程控制procedure TForm1.Button2Click(Sender: TObject);var vBuf:array[0..101] of char; i,j:integer;begin //包的格式很简单,在以太网包的任何位置上, //以6个FF为先导,后面跟相应MAC...
分类:其他好文   时间:2015-07-13 18:04:51    阅读次数:88
delphi -- 进制转换 函数表
1.16 TO 10********************************************************16转10,否则输出-1function Hex(c: char): Integer;var x: Integer;begin if ( Ord(c)>= Ord('0...
分类:Windows程序   时间:2015-07-13 17:56:39    阅读次数:189
Delphi的移动文件方法(转)/删除文件:/文件的复制
RenameFile,DeleteFile,MoveFileDelphi的移动文件方法usesShellApi;procedure ShellFileOperation(fromFile: string; toFile: string; Flags: Integer);varshellinfo: T...
分类:移动开发   时间:2015-07-13 17:31:58    阅读次数:138
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!