Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidates where the candidate numb ...
分类:
其他好文 时间:
2019-10-19 20:19:00
阅读次数:
84
Given an array of numbers nums, in which exactly two elements appear only once and all the other elements appear exactly twice. Find the two elements ...
分类:
其他好文 时间:
2019-10-19 10:06:25
阅读次数:
108
Given an array containing n distinct numbers taken from 0, 1, 2, ..., n, find the one that is missing from the array. Example 1: Example 2: Note:Your ...
分类:
其他好文 时间:
2019-10-19 09:33:02
阅读次数:
63
其他专题 总有一些题目,是使用人类智慧硬解的,当然LC也不太为难你。 一道medium这么低的ac率因为啥,坑多呀。 42. Trapping Rain Water 头条同款题目,做的时候完全没准儿,一不小心就过了。 41. First Missing Positive 这道题说起规律,那么就是计数 ...
分类:
其他好文 时间:
2019-10-18 12:35:17
阅读次数:
71
Problem Description Avin’s company has many ongoing projects with different budgets. His company records the budgets using numbers rounded to 3 digits ...
分类:
其他好文 时间:
2019-10-16 21:30:08
阅读次数:
122
Javascript Numbers 知识描述:JavaScript 只有一种数字类型,即数字(Number)。数字可以带小数点,也可以不带,也就是整数和小数。 数字可以带小数点,也可以不带: Example 极大或极小的数字可以通过科学(指数)计数法来书写: Example JavaScript ...
分类:
编程语言 时间:
2019-10-16 00:37:33
阅读次数:
100
python学习6 1. 使用id()可以查看一个变量的内存地址: 2. 进制转换 十进制转换为二进制等: 二进制等转换为十进制: 3. 数据类型分类 可变不可变: 可变:列表,字典 不可变:字符串,数字,元组 访问顺序: 直接访问:数字 顺序访问:字符串,列表,元组 映射访问:字典 存放元素个数 ...
分类:
编程语言 时间:
2019-10-15 16:19:32
阅读次数:
120
2019-10-14 22:21:29 问题描述: 问题求解: 暴力求解必然会超时,那么就需要考虑数学的方法来降低时间复杂度了。 ...
分类:
其他好文 时间:
2019-10-14 23:35:33
阅读次数:
110
17. 子集 中文 English English 给定一个含不同整数的集合,返回其所有的子集。 给定一个含不同整数的集合,返回其所有的子集。 给定一个含不同整数的集合,返回其所有的子集。 样例 样例 1: 输入:[0] 输出: [ [], [0] ] 样例 2: 输入:[1,2,3] 输出: [ ...
分类:
其他好文 时间:
2019-10-13 19:09:24
阅读次数:
121
这题思路跟2很相似。唯一的不同点在于,2只是正向做加法,但是445是在逆向做加法。这题我的思路是先用stack存住两个list的nodes,然后pop出来的时候做加法。这样就不需要操心reverse linked list这件事了。 ...
分类:
其他好文 时间:
2019-10-13 15:07:06
阅读次数:
97