You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai ...
分类:
其他好文 时间:
2018-02-19 13:48:33
阅读次数:
193
Given a non-negative integer c, your task is to decide whether there're two integers a and b such that a2 + b2 = c. Example 1: Input: 5 Output: True E ...
分类:
其他好文 时间:
2018-02-15 10:28:38
阅读次数:
192
Given a list, rotate the list to the right by k places, where k is non-negative. Example: Tips:右移结点,过程如下: k=2,右移两次: ①5->1->2->3->4 ②4->5->1->2->3 思路:( ...
分类:
其他好文 时间:
2018-02-14 16:43:45
阅读次数:
222
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai... ...
分类:
其他好文 时间:
2018-02-12 23:42:23
阅读次数:
334
Given two non-negative integers num1 and num2 represented as strings, return the product of num1 and num2.Note:The length of both num1 and num2 is < 1... ...
分类:
其他好文 时间:
2018-02-12 23:41:41
阅读次数:
420
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-02-12 23:40:27
阅读次数:
232
Given a non-negative integer n, count all numbers with unique digits, x, where 0 ≤ x < 10n.Example: Given n = 2, return 91. (The answer should be the ... ...
分类:
其他好文 时间:
2018-02-12 23:05:39
阅读次数:
266
CF898A Rounding CF898A Rounding CF898A Rounding 题意翻译 给你一个数字,将其“四舍六入”,末尾为5舍去或进位都可,求最终的数字。 题目描述 Vasya has a non-negative integer nn . He wants to round ...
分类:
其他好文 时间:
2018-02-11 12:39:47
阅读次数:
162
原题链接在这里:https://leetcode.com/problems/data-stream-as-disjoint-intervals/description/ 题目: Given a data stream input of non-negative integers a1, a2, .. ...
分类:
其他好文 时间:
2018-02-11 12:25:51
阅读次数:
163
Given a list of non negative integers, arrange them such that they form the largest number. For example, given [3, 30, 34, 5, 9], the largest formed n ...
分类:
其他好文 时间:
2018-02-08 00:25:08
阅读次数:
123