码迷,mamicode.com
首页 >  
搜索关键字:non-negative    ( 2271个结果
【LeetCode】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 l ...
分类:其他好文   时间:2016-09-11 09:00:20    阅读次数:107
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-09-11 06:48:43    阅读次数:146
2016 ACM/ICPC Asia Regional Dalian Online HDU 5877 Weak Pair treap + dfs序
Weak Pair Problem Description You are given a rooted tree of N nodes, labeled from 1 to N. To the ith node a non-negative value ai is assigned.An orde ...
分类:其他好文   时间:2016-09-10 20:40:25    阅读次数:194
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 a ...
分类:其他好文   时间:2016-09-10 09:00:14    阅读次数:171
LeetCode-Integer to English Words
Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1. For example, 123 -> "One Hundre ...
分类:其他好文   时间:2016-09-10 06:44:43    阅读次数:163
LeetCode Plus One Linked List
原题链接在这里:https://leetcode.com/problems/plus-one-linked-list/ 题目: Given a non-negative number represented as a singly linked list of digits, plus one to ...
分类:其他好文   时间:2016-09-08 15:52:21    阅读次数:283
思维题(两点逼近)LeetCode11 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 endpo ...
分类:其他好文   时间:2016-09-06 15:23:33    阅读次数:180
[leetcode] 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-09-04 23:53:01    阅读次数:166
LeetCode OJ 84. 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 hist ...
分类:其他好文   时间:2016-09-03 20:58:38    阅读次数:183
LeetCode45 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 m ...
分类:其他好文   时间:2016-09-02 23:27:09    阅读次数:133
2271条   上一页 1 ... 84 85 86 87 88 ... 228 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!