Gray Code
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 t...
分类:
其他好文 时间:
2015-08-04 15:46:28
阅读次数:
112
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->...
分类:
其他好文 时间:
2015-08-04 11:06:39
阅读次数:
114
Description:Count the number of prime numbers less than a non-negative number,n.public class Solution { public int countPrimes(int n) { //筛选...
分类:
其他好文 时间:
2015-08-04 00:15:09
阅读次数:
95
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 path.N...
分类:
其他好文 时间:
2015-08-03 16:41:11
阅读次数:
82
Given a list of non negative integers, arrange them such that they form the largest number.For example, given[3, 30, 34, 5, 9], the largest formed num...
分类:
其他好文 时间:
2015-08-03 00:55:11
阅读次数:
133
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-08-02 21:19:04
阅读次数:
81
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-08-02 19:52:11
阅读次数:
94
问题描述Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the ...
分类:
其他好文 时间:
2015-08-02 11:38:09
阅读次数:
96
【066-Plus One(加一)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 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 di...
分类:
编程语言 时间:
2015-08-02 06:24:03
阅读次数:
159
【064-Minimum Path Sum(最小路径和)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题 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...
分类:
编程语言 时间:
2015-08-02 06:23:02
阅读次数:
928