Given two non-negative numbers num1 and num2 represented as string, return the sum of num1 and num2. Note: 两个只含有数字的字符串相加。 解法: 对于每个字符转成对应的整数,然后相加,结果在写入 ...
分类:
其他好文 时间:
2018-03-26 10:55:43
阅读次数:
174
问题描述: Given an array of citations (each citation is a non-negative integer) of a researcher, write a function to compute the researcher's h-index. Acc ...
分类:
其他好文 时间:
2018-03-24 14:27:40
阅读次数:
154
浮点数必须包含一个小数点。 float型数值后面必须紧跟一个“F/f”,否则默认为double类型。 三个特殊浮点数: POSITIVE_INFINITY:正无穷大 NEGATIVE_INIFINITY:负无穷大 NaN:非数 (只有浮点数除以0才能得到无穷大,整型除以0会抛出一个异常) Java没 ...
分类:
编程语言 时间:
2018-03-23 13:01:12
阅读次数:
184
Love does not dominate, it culitvates. 爱不是羁绊,而是成就。 Love should not wipe out everything you are, love should not overpower you in a negative way and ma ...
分类:
其他好文 时间:
2018-03-22 10:57:16
阅读次数:
168
You are asked to cut off trees in a forest for a golf event. The forest is represented as a non-negative 2D map, in this map: You are asked to cut off ...
分类:
其他好文 时间:
2018-03-22 10:51:13
阅读次数:
241
On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). Once you pay the cost, you can either climb one or two steps. Y ...
分类:
其他好文 时间:
2018-03-20 21:40:56
阅读次数:
141
Given a non-empty special binary tree consisting of nodes with the non-negative value, where each node in this tree has exactly two or zero sub-node. ...
分类:
其他好文 时间:
2018-03-15 19:54:12
阅读次数:
230
[抄题]: On a staircase, the i-th step has some non-negative cost cost[i] assigned (0 indexed). Once you pay the cost, you can either climb one or two st ...
分类:
其他好文 时间:
2018-03-13 13:58:54
阅读次数:
156
Description: Count the number of prime numbers less than a non-negative number, n click to show more hints. References: How Many Primes Are There? Sie ...
分类:
其他好文 时间:
2018-03-12 17:04:24
阅读次数:
2473
Convert a non-negative integer to its english words representation. Given input is guaranteed to be less than 231 - 1. For example, Hint: 将一个整数转换成英文单词 ...
分类:
其他好文 时间:
2018-03-12 15:16:30
阅读次数:
315