码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
LeetCode: Multiply Strings. Java
Given two numbers represented as strings, return multiplication of the numbers as a string. Note: The numbers can be arbitrarily large and are non-negative. public class Solution { //模拟手算乘法 ...
分类:编程语言   时间:2014-10-29 09:14:28    阅读次数:168
LeetCode: Trapping Rain Water 解题报告
https://oj.leetcode.com/problems/trapping-rain-water/Trapping Rain WaterGiven n non-negative integers representing an elevation map where the width of...
分类:移动开发   时间:2014-10-28 19:54:55    阅读次数:213
LeetCode: Container With Most Water 解题报告
Container With Most WaterGiven n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are draw...
分类:其他好文   时间:2014-10-28 19:30:59    阅读次数:163
[leetcode]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. 代码: ...
分类:其他好文   时间:2014-10-28 17:49:25    阅读次数:147
LeetCode 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. 题目描述: 输入一个数组表示的...
分类:其他好文   时间:2014-10-28 13:53:27    阅读次数:157
[LeetCode] 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 ...
分类:其他好文   时间:2014-10-27 22:58:01    阅读次数:269
[LeetCode] Gray Code
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the total number...
分类:其他好文   时间:2014-10-27 20:59:08    阅读次数:164
Rotate List
Given a list, rotate the list to the right bykplaces, wherekis non-negative.For example:Given1->2->3->4->5->NULLandk=2,return4->5->1->2->3->NULL.思路:将单...
分类:其他好文   时间:2014-10-26 22:47:08    阅读次数:166
[Leetcode] 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...
分类:其他好文   时间:2014-10-26 16:58:18    阅读次数:134
leetcode - Trapping Rain Water
Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after raining. For example,  Given [0,1,0,2,1,0,1,3,2,1,2,1]...
分类:移动开发   时间:2014-10-26 14:26:31    阅读次数:187
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!