Trapping Rain Water
Total Accepted: 68935 Total
Submissions: 211305 Difficulty: Hard
Given n non-negative integers representing an elevation map where the width of each bar i...
分类:
移动开发 时间:
2016-06-12 02:01:15
阅读次数:
194
1. 问题描述 Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, -, *, / ope ...
分类:
其他好文 时间:
2016-06-10 12:16:47
阅读次数:
109
Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat ...
分类:
其他好文 时间:
2016-06-07 20:49:18
阅读次数:
139
题目描述: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a s ...
分类:
其他好文 时间:
2016-06-05 15:25:40
阅读次数:
101
问题描述: Given a data stream input of non-negative integers a1, a2, ..., an, ..., summarize the numbers seen so far as a list of disjoint intervals. 解题思路 ...
分类:
其他好文 时间:
2016-06-05 11:01:57
阅读次数:
241
Add Digits
Total Accepted: 98713 Total
Submissions: 202414 Difficulty: Easy
Given a non-negative integer num, repeatedly
add all its digits until the result has only one di...
分类:
其他好文 时间:
2016-06-03 19:36:37
阅读次数:
120
题目链接:https://leetcode.com/problems/count-primes/
题目:
Description:
Count the number of prime numbers less than a non-negative number, n.
思路:
埃拉托色尼选筛法
算法:
public int countPrimes...
分类:
其他好文 时间:
2016-06-02 13:49:18
阅读次数:
132
Given a list, rotate the list to the right by k places, where k is non-negative. For example:Given 1->2->3->4->5->NULL and k = 2,return 4->5->1->2->3- ...
分类:
其他好文 时间:
2016-06-02 09:37:38
阅读次数:
147
Given a non negative integer number num. For every numbers i in the range 0 ≤ i ≤ num calculate the number of 1's in their binary representation and r ...
分类:
其他好文 时间:
2016-06-02 06:17:37
阅读次数:
147
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 ...
分类:
其他好文 时间:
2016-06-01 06:48:06
阅读次数:
200