problem:
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, pr...
分类:
其他好文 时间:
2015-04-14 21:31:46
阅读次数:
149
Problem Description
You are given a sequence of n numbers a0,..., an-1. A cyclic shift by k positions (0k ak+1,..., an-1, a0, a1,...,
ak-1. How many of the n cyclic shifts satisfy the condition tha...
分类:
其他好文 时间:
2015-04-14 18:03:29
阅读次数:
149
problem:
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 histogram.
Above is a histo...
分类:
其他好文 时间:
2015-04-14 16:45:49
阅读次数:
88
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-04-13 22:27:22
阅读次数:
163
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 ...
分类:
其他好文 时间:
2015-04-13 09:30:41
阅读次数:
102
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-04-13 08:15:12
阅读次数:
116
Total Accepted: 16020 Total Submissions: 103330Given a list of non negative integers, arrange them such that they form the largest number.For example,...
分类:
编程语言 时间:
2015-04-13 00:18:06
阅读次数:
156
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 histogram.
Above is a histogram where width o...
分类:
其他好文 时间:
2015-04-11 22:35:26
阅读次数:
178
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-04-11 22:26:13
阅读次数:
187
题目:
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...
分类:
其他好文 时间:
2015-04-11 16:25:26
阅读次数:
127