2. Add Two Numbers You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse orderand each of ...
Given a target integer T, a non-negative integer K and an integer array A sorted in ascending order, find the K closest numbers to T in A. Assumptions ...
分类:
其他好文 时间:
2018-12-16 15:20:39
阅读次数:
149
You are given two non-empty linked lists representing two non-negative integers. The most significant digit comes first and each of their nodes contai ...
分类:
其他好文 时间:
2018-12-15 10:28:30
阅读次数:
167
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-12-12 18:54:40
阅读次数:
204
Given an array, rotate the array to the right by k steps, where k is non-negative. Example 1: Input: [1,2,3,4,5,6,7] and k = 3 Output: [5,6,7,1,2,3,4] ...
分类:
其他好文 时间:
2018-12-09 10:43:22
阅读次数:
140
题目限定输入是[0, 10^8],因而不用考虑负数或者越界情况,算是减小了难度。 1 public class Solution { 2 /** 3 * @param num: a non-negative intege 4 * @return: the maximum valued number ...
分类:
其他好文 时间:
2018-12-05 21:46:24
阅读次数:
188
Given two non negative integers num1 and num2 represented as string, return the sum of num1 and num2. Note: + The length of both num1 and num2 is =0; ...
分类:
其他好文 时间:
2018-12-04 22:38:04
阅读次数:
244
You are given a list of non negative integers, a1, a2, …, an, and a target, S. Now you have 2 symbols + and . For each integer, you should choose one ...
分类:
其他好文 时间:
2018-12-03 23:02:27
阅读次数:
218
Given a non-negative index k where k ≤ 33, return the kth index row of the Pascal's triangle. Note that the row index starts from 0. In Pascal's trian ...
分类:
其他好文 时间:
2018-12-02 19:22:23
阅读次数:
149
Given a binary search tree with non-negative values, find the minimum absolute difference between values of any two nodes. Example: Input: 1 \ 3 / 2 O ...
分类:
其他好文 时间:
2018-12-01 13:24:40
阅读次数:
169