码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
【LeetCode】Gray Code
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
Jump Game II
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
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...
分类:其他好文   时间:2014-12-04 08:47:00    阅读次数:168
[LeetCode] Jump Game II 贪心
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
【Leetcode】Minimum Path Sum
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
【LeetCode】Container With Most Water 解题报告
【题目】 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
[leetcode] Rotate List
问题描述: 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
LeetCode: Rotate List 解题报告
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
【Leetcode】Container With Most Water in JAVA
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
Leetcode Variant-Plus N
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!