Given a list of non negative integers, arrange them such that they form the largest number. Example 1: Input: [10,2] Output: "210" Example 2: Input: [ ...
分类:
其他好文 时间:
2018-10-30 10:20:13
阅读次数:
155
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai ...
分类:
其他好文 时间:
2018-10-27 15:22:19
阅读次数:
117
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 ...
分类:
其他好文 时间:
2018-10-25 14:18:47
阅读次数:
165
Implement int sqrt(int x). Compute and return the square root of x, where x is guaranteed to be a non-negative integer. Since the return type is an in ...
分类:
其他好文 时间:
2018-10-20 23:53:22
阅读次数:
288
Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1. Example 1: Input: 123Output: "O ...
分类:
其他好文 时间:
2018-10-18 10:52:29
阅读次数:
144
Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2, also represented as a string. Example 1: Ex ...
分类:
其他好文 时间:
2018-10-16 20:21:31
阅读次数:
189
题目 Given a non negative integer num, repeatedly add all its digits until the result has only one digit. Example: Input: 38 Output: 2 Explanation: The ...
分类:
其他好文 时间:
2018-10-15 11:47:13
阅读次数:
131
Implement int sqrt(int x). Compute and return the square root of x, where x is guaranteed to be a non-negative integer. Since the return type is an in ...
分类:
其他好文 时间:
2018-10-14 19:02:20
阅读次数:
151
题目 Count the number of prime numbers less than a non negative number, n. Example: Input: 10 Output: 4 Explanation: There are 4 prime numbers less than ...
分类:
其他好文 时间:
2018-10-12 13:54:06
阅读次数:
120
Given a non-negative integer N, find the largest number that is less than or equal to N with monotone increasing digits. (Recall that an integer has m ...
分类:
其他好文 时间:
2018-10-11 23:44:51
阅读次数:
216