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 ...
分类:
其他好文 时间:
2015-03-08 00:02:05
阅读次数:
193
Minimum Path Sum问题:Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers alo...
分类:
其他好文 时间:
2015-03-07 17:07:04
阅读次数:
120
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 at...
分类:
其他好文 时间:
2015-03-07 16:58:09
阅读次数:
131
Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of all numbers along its path.Note:Yo...
分类:
其他好文 时间:
2015-03-07 15:40:57
阅读次数:
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 maximum jump length at that position.
Your goal i...
分类:
其他好文 时间:
2015-03-07 01:03:47
阅读次数:
155
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the total number...
分类:
其他好文 时间:
2015-03-06 15:34:13
阅读次数:
153
标题:Minimum Path Sum通过率:31.7%难度:中等Given amxngrid filled with non-negative numbers, find a path from top left to bottom right whichminimizesthe sum of a...
分类:
其他好文 时间:
2015-03-06 11:17:38
阅读次数:
103
1. 题目描述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->NULL.2.解决方案1class Solution {
public:
Li...
分类:
其他好文 时间:
2015-03-06 10:03:23
阅读次数:
86
Given two numbers represented as strings, return multiplication of the numbers as a string.
Note: The numbers can be arbitrarily large and are non-negative.
题意:字符串的乘法。
思路:模拟竖乘的思路,跟大数计算一样,先将字符串倒置
...
分类:
其他好文 时间:
2015-03-06 01:06:45
阅读次数:
139
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 maximu...
分类:
其他好文 时间:
2015-03-05 16:47:55
阅读次数:
106