码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
352. Data Stream as Disjoint Intervals
Given a data stream input of non-negative integers a1, a2, ..., an, ..., summarize the numbers seen so far as a list of disjoint intervals. For exampl ...
分类:其他好文   时间:2017-11-18 11:09:34    阅读次数:119
633. Sum of Square Numbers
Given a non-negative integer c, your task is to decide whether there're two integers a and b such that a2 + b2 = c. Example 1: Example 2: java(14ms): ...
分类:其他好文   时间:2017-11-17 10:51:49    阅读次数:120
523. Continuous Subarray Sum
Given a list of non-negative numbers and a target integer k, write a function to check if the array has a continuous subarray of size at least 2 that ...
分类:其他好文   时间:2017-11-13 18:22:55    阅读次数:137
Leetcode 84: Largest Rectangle in Histogram
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the hist ...
分类:其他好文   时间:2017-11-13 11:10:44    阅读次数:150
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: ...
分类:其他好文   时间:2017-11-12 21:52:32    阅读次数:181
[LintCode] Minimum Path Sum
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. ...
分类:其他好文   时间:2017-11-12 12:23:38    阅读次数:135
LeetCode解题笔记 - 2. Add Two Numbers
2. Add Two Numbers You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of ...
分类:其他好文   时间:2017-11-11 18:51:24    阅读次数:171
UVA_10139
The factorial function, n! is de?ned thus for n a non-negative integer:0! = 1 n! = n×(n?1)! (n > 0)We say that a divides b if there exists an integer ...
分类:其他好文   时间:2017-11-10 00:18:10    阅读次数:154
[LeetCode] Sum of Square Numbers
Given a non-negative integer c, your task is to decide whether there're two integers a and b such that a2 + b2 = c. Example 1: Input: 5 Output: True E ...
分类:其他好文   时间:2017-11-09 15:05:14    阅读次数:136
Leetcode 43: Multiply Strings
Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2. Note: The length of both num1 and num2 is < ...
分类:其他好文   时间:2017-11-08 13:32:09    阅读次数:214
2271条   上一页 1 ... 48 49 50 51 52 ... 228 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!