码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
leetcode || 89、Gray Code
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
HDU Non-negative Partial Sums (单调队列)
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
leetcode || 84、Largest Rectangle in Histogram
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
Add Two Numbers
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
LeetCode 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 the sequence of ...
分类:其他好文   时间:2015-04-13 09:30:41    阅读次数:102
Plus One
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
Leetcode Largest Number c++ solution
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
LeetCode Largest Rectangle in Histogram (单调栈)
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
66 Plus One
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
Leetcode: 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 the sequence of...
分类:其他好文   时间:2015-04-11 16:25:26    阅读次数:127
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!