码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
LeetCode --- 89. Gray Code
题目链接: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 th...
分类:其他好文   时间:2015-04-07 23:34:18    阅读次数:318
Jump Game--LeetCode
题目: 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 maximum jump length at that position. De...
分类:其他好文   时间:2015-04-07 19:42:29    阅读次数:108
leetcode-11 Container With Most Water
?? 问题描述:Given n non-negative integers a1, a2, ..., an, where each represents a pointat coordinate (i, ai). n vertical lines aredrawn such that the two endpoints of line i is at (i, ai) and (...
分类:其他好文   时间:2015-04-07 11:59:19    阅读次数:129
[Leetcode][Python]55: Jump Game
# -*- coding: utf8 -*-'''__author__ = 'dabay.wang@gmail.com'55: Jump Gamehttps://leetcode.com/problems/jump-game/Given an array of non-negative intege...
分类:编程语言   时间:2015-04-07 07:06:39    阅读次数:232
Container With Most Water--LeetCode
题目: 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, ...
分类:其他好文   时间:2015-04-06 17:17:36    阅读次数:142
[Leet code 2]Two Sum
1 题目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 sin...
分类:其他好文   时间:2015-04-06 17:01:05    阅读次数:112
Add Two Numbers--LeetCode
题目: 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 digit. Add the two numbers and return it ...
分类:其他好文   时间:2015-04-06 15:42:46    阅读次数:108
[LeetCode]Minimum Path Sum
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. Note: You can only move either down or right ...
分类:其他好文   时间:2015-04-06 12:53:23    阅读次数:132
LeetCode66/169/79 Plus One/Majority Element /Word Search
一: 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 the head of the list. ...
分类:其他好文   时间:2015-04-05 21:59:23    阅读次数:159
【leetcode】Jump Game I & II (hard)
Jump Game (middle)Given an array of non-negative integers, you are initially positioned at the first index of the array.Each element in the array repr...
分类:其他好文   时间:2015-04-05 21:55:15    阅读次数:178
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!