题目: 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
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
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
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
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
原题链接在这里: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
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
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
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
题目: 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