题目: Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit ...
分类:
其他好文 时间:
2016-09-22 00:57:54
阅读次数:
173
题目: 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 pa ...
分类:
其他好文 时间:
2016-09-20 22:38:01
阅读次数:
173
Description: Count the number of prime numbers less than a non-negative number, n. Analyse: start from 2, label 2 * 2, 2 * 3... as false; then move to ...
分类:
其他好文 时间:
2016-09-20 06:50:36
阅读次数:
215
题目: Given a list, rotate the list to the right by k places, where k is non-negative. (Medium) For example:Given 1->2->3->4->5->NULL and k = 2,return 4 ...
分类:
其他好文 时间:
2016-09-20 00:06:10
阅读次数:
231
Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible. Note: The l ...
分类:
其他好文 时间:
2016-09-19 06:44:24
阅读次数:
133
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-09-19 06:37:40
阅读次数:
113
The gray code is a binary numeral system where two successive values differ in only one bit. Given a non-negative integer n representing the total num ...
分类:
其他好文 时间:
2016-09-17 07:10:28
阅读次数:
123
Given a non-negative number represented as an array of digits, plus one to the number. The digits are stored such that the most significant digit is a ...
分类:
其他好文 时间:
2016-09-17 00:15:54
阅读次数:
145
1. Counting Bits 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 rep ...
分类:
其他好文 时间:
2016-09-16 07:51:56
阅读次数:
148
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-09-15 16:33:51
阅读次数:
134