码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
[leetcode]trapping rain water
描述 Given n non-negative integers representing an elevation map where the width of each bar is 1, computehow much water it is able to trap after rainin...
分类:移动开发   时间:2015-09-04 12:21:29    阅读次数:190
[LeetCode] H-Index 求H指数
Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index.According ...
分类:其他好文   时间:2015-09-04 08:39:34    阅读次数:261
[LeetCode#274]H-Index
Problem:Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index.Ac...
分类:其他好文   时间:2015-09-04 07:28:04    阅读次数:141
数字根(digital root)
来源:LeetCode 258 Add Dights Question:Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For exa...
分类:其他好文   时间:2015-09-03 21:41:44    阅读次数:157
[LeetCode#258]Add Digits
Problem:Given a non-negative integernum, repeatedly add all its digits until the result has only one digit.For example:Givennum = 38, the process is l...
分类:其他好文   时间:2015-09-01 10:23:24    阅读次数:150
[Leetcode] Basic Calculator II
Basic Calculator IIImplement a basic calculator to evaluate a simple expression string.The expression string contains only non-negative integers, +, -...
分类:其他好文   时间:2015-08-31 21:40:03    阅读次数:166
LeetCode OJ 之 Add Digits (数字相加)
题目: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2...
分类:其他好文   时间:2015-08-31 15:21:10    阅读次数:124
leetcode-258-Add Digits
Add Digits Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: 3 + 8 = 11, 1 + 1 = 2. ...
分类:其他好文   时间:2015-08-31 13:36:38    阅读次数:168
[LeetCode] Integer to English Words 整数转为英文单词
Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1.For example,123 -> "One Hundred ...
分类:其他好文   时间:2015-08-31 13:30:33    阅读次数:133
Number of Digit One
Description:Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n.For example:Given n =...
分类:其他好文   时间:2015-08-31 13:28:48    阅读次数:130
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!