码迷,mamicode.com
首页 >  
搜索关键字:number    ( 26994个结果
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 theHamming weight).For example, the 32-bit in...
分类:其他好文   时间:2015-04-08 07:58:32    阅读次数:106
[Leetcode][JAVA] Minimum Depth of Binary Tree && Balanced Binary Tree
Minimum Depth of Binary TreeGiven a binary tree, find its minimum depth.The minimum depth is the number of nodes along the shortest path from the root...
分类:编程语言   时间:2015-04-08 07:55:25    阅读次数:137
LeetCode --- 89. Gray Code
题目链接:Gray Code The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total number of bits in the code, print th...
分类:其他好文   时间:2015-04-07 23:34:18    阅读次数:318
LeetCode【1】Two Sum
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2015-04-07 23:10:46    阅读次数:126
PL/SQL
Exception --> erroruser definedsystem exceptiondeclarebeginexceptionendPL/SQL programtake the input (any number ) from user, print the input in revers...
分类:数据库   时间:2015-04-07 23:06:55    阅读次数:310
Valid Number @python
Valid NumberValidate if a given string is numeric.Some examples:"0"=>true" 0.1 "=>true"abc"=>false"1 a"=>false"2e10"=>trueNote:It is intended for the ...
分类:编程语言   时间:2015-04-07 22:58:36    阅读次数:248
POJ1226---Substrings(后缀数组+二分)
Description You are given a number of case-sensitive strings of alphabetic characters, find the largest string X, such that either X, or its inverse can be found as a substring of any of the given str...
分类:编程语言   时间:2015-04-07 21:52:51    阅读次数:169
练习编程之leetcode篇----------(1)
Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
分类:其他好文   时间:2015-04-07 21:28:54    阅读次数:100
【从零单刷LeetCode】Single Number
从今天模仿《从零单排》系列,菜鸡单刷LeetCode!...
分类:其他好文   时间:2015-04-07 19:44:12    阅读次数:100
number of 1 bits
题目地址:https://leetcode.com/problems/number-of-1-bits/解答:public class Solution { // you need to treat n as an unsigned value public int hammingWei...
分类:其他好文   时间:2015-04-07 19:14:44    阅读次数:71
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!