Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your maxim ...
分类:
其他好文 时间:
2016-06-23 20:38:25
阅读次数:
148
Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, -, *, / operators a ...
分类:
其他好文 时间:
2016-06-22 19:00:13
阅读次数:
137
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 single ...
分类:
其他好文 时间:
2016-06-22 15:26:36
阅读次数:
105
题目描述: 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 ...
分类:
其他好文 时间:
2016-06-21 19:09:04
阅读次数:
193
Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n.Example:
Given n = 2, return 91. (The answer should be the total numbers in the range of 0 ≤ x < 100, excludi...
分类:
其他好文 时间:
2016-06-21 07:12:43
阅读次数:
111
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-20 22:10:52
阅读次数:
205
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 single ...
分类:
其他好文 时间:
2016-06-20 15:31:56
阅读次数:
119
Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n. Given a non-negative integer n, count all numbers with uni ...
分类:
其他好文 时间:
2016-06-20 12:49:05
阅读次数:
115
题目概述: Description: Count the number of prime numbers less than a non-negative number, n. Credits:Special thanks to @mithmatt for adding this problem a ...
分类:
其他好文 时间:
2016-06-19 06:46:44
阅读次数:
195
1. 问题描述 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 i ...
分类:
其他好文 时间:
2016-06-18 19:50:27
阅读次数:
133