Gray CodeThe gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the tot...
分类:
其他好文 时间:
2014-12-05 16:49:10
阅读次数:
180
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...
分类:
其他好文 时间:
2014-12-04 13:56:04
阅读次数:
128
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 number of bits in the code, print the sequence of...
分类:
其他好文 时间:
2014-12-04 08:47:00
阅读次数:
168
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...
分类:
其他好文 时间:
2014-12-04 06:16:31
阅读次数:
240
Minimum Path Sum
Total Accepted: 23319 Total
Submissions: 74768My Submissions
Question
Solution
Given a m x n grid filled with non-negative numbers, find a path from top left to b...
分类:
其他好文 时间:
2014-12-02 22:33:25
阅读次数:
157
【题目】
Given n non-negative integers a1, a2,
..., an, where each represents a point at coordinate (i, ai). n vertical
lines are drawn such that the two endpoints of line i is at (i, ai) and (i,...
分类:
其他好文 时间:
2014-12-02 10:38:56
阅读次数:
170
问题描述:
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.
基本思想:
本题需要考虑k 大于链表长度的情况。所以链...
分类:
其他好文 时间:
2014-12-01 22:33:01
阅读次数:
203
Rotate ListGiven 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...
分类:
其他好文 时间:
2014-11-30 00:24:40
阅读次数:
247
Given n non-negative integers a1, a2,
..., an, where each represents a point at coordinate (i, ai). n vertical
lines are drawn such that the two endpoints of line i is at (i, ai) and (i,
0). Fin...
分类:
编程语言 时间:
2014-11-29 10:30:19
阅读次数:
179
Given a non-negative number represented as an array of digits, plus N to the number.The digits are stored such that the most significant digit is at t...
分类:
其他好文 时间:
2014-11-29 07:05:00
阅读次数:
185