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
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
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
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
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
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
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
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
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
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