码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
POJ-2442 Sequence(手写堆优化)
Sequence Time Limit: 6000MS Memory Limit: 65536K Total Submissions: 9131 Accepted: 3037 Description Given m sequences, each contains n non-negative in ...
分类:其他好文   时间:2016-11-04 21:03:14    阅读次数:274
258. Add Digits
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like: ...
分类:其他好文   时间:2016-11-02 23:24:56    阅读次数:185
LeetCode 415 Add Strings
Problem: Given two non-negative numbers num1 and num2 represented as string, return the sum of num1 and num2. Summary: 以字符串的形式求两个整形数相加。 Analysis: 这道题是 ...
分类:其他好文   时间:2016-10-31 09:18:34    阅读次数:178
【LeetCode】11. 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 e ...
分类:其他好文   时间:2016-10-30 00:02:52    阅读次数:184
42. 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. ...
分类:移动开发   时间:2016-10-27 09:56:09    阅读次数:275
64. 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. ...
分类:其他好文   时间:2016-10-26 07:21:22    阅读次数:166
leetcode415---字符串大数相加
Given two non-negative numbers num1 and num2 represented as string, return the sum of num1 and num2. Note: 我的第一个想法就是选好两个字符串,然后模拟加法进位,然后用一个字符串接着,同时记住进位 ...
分类:其他好文   时间:2016-10-26 07:11:18    阅读次数:198
LeetCode 258 Add Digits
Problem: Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process ...
分类:其他好文   时间:2016-10-23 07:48:07    阅读次数:191
LeetCode89 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 ...
分类:其他好文   时间:2016-10-22 00:03:46    阅读次数:224
刷题笔记:对撞型/相会型指针(1) 灌水类
1 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 ...
分类:其他好文   时间:2016-10-21 08:11:25    阅读次数:283
2271条   上一页 1 ... 78 79 80 81 82 ... 228 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!