Given a set of candidate numbers (candidates) (without duplicates) and a target number (target), find all unique combinations in candidates where the ...
分类:
其他好文 时间:
2019-02-03 18:11:43
阅读次数:
150
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below). The robot can only move either down or right at any p ...
分类:
其他好文 时间:
2019-02-03 18:05:27
阅读次数:
184
The set [1,2,3,...,n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order, we get the following seque ...
分类:
其他好文 时间:
2019-02-03 11:07:07
阅读次数:
129
[toc] 题目链接 "Remove Duplicates from Sorted Array LeetCode" 注意点 解法二要考虑输入为空的情况 解法 解法一:只要两行!超级简单,使用了 "unique函数" 。时间复杂度为O(n) 解法二:来自官方题解。维护两个指针,i是慢指针,j是快指针。 ...
分类:
其他好文 时间:
2019-02-02 14:29:11
阅读次数:
173
Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be ...
分类:
其他好文 时间:
2019-02-01 23:27:38
阅读次数:
269
多对一或者一对多 格式: 示例: 一个出版社可以出多本书 一对多 一本书可以被多个出版社出版 一对多 代码: 被关联表 关联表 详解 FK 字段在关联表创建,会新增一个 FK字段 建立于被关联表的映射 被关联表的被关联字段必须是唯一的,即多对一的 "一" 关联表的FK 字段是可以不唯一的, 即多对一 ...
分类:
数据库 时间:
2019-02-01 01:13:58
阅读次数:
220
https://leetcode.com/problems/first-unique-character-in-a-string/ Given a string, find the first non-repeating character in it and return it's index. ...
分类:
其他好文 时间:
2019-01-30 20:54:02
阅读次数:
119
模板太多了,写啥更新啥,顺便当自己的存档 码风很乱,见谅 单点修改树状数组 Code</> 区间修改树状数组 Code</> 可持久化线段树(主席树) Code</> ...
分类:
其他好文 时间:
2019-01-30 20:30:53
阅读次数:
138
算法描述: The set [1,2,3,...,n] contains a total of n! unique permutations. By listing and labeling all of the permutations in order, we get the following ...
分类:
其他好文 时间:
2019-01-30 15:50:54
阅读次数:
99
Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique q ...
分类:
其他好文 时间:
2019-01-30 14:25:47
阅读次数:
122