Combination Sum II (M) 题目 Given a collection of candidate numbers (candidates) and a target number (target), find all unique combinations in candidate ...
分类:
其他好文 时间:
2020-06-27 10:04:01
阅读次数:
52
521. 去除重复元素 中文English 给一个整数数组,去除重复的元素。 你应该做这些事 1.在原数组上操作2.将去除重复之后的元素放在数组的开头3.返回去除重复元素之后的元素个数 样例 例1: 输入: nums = [1,3,1,4,4,2] 输出: [1,3,4,2,?,?] 4 解释: 1 ...
分类:
其他好文 时间:
2020-06-26 23:53:37
阅读次数:
96
1.NIO的使用说明:>Java NIO (New IO,Non-Blocking IO)是从Java 1.4版本开始引入的一套新的IO API,可以替代标准的Java IO AP。>NIO与原来的IO同样的作用和目的,但是使用的方式完全不同,NIO支持面向缓冲区的(IO是面向流的)、基于通道的IO ...
分类:
编程语言 时间:
2020-06-26 22:15:47
阅读次数:
69
Given a sorted array A of unique numbers, find the K-th missing number starting from the leftmost number of the array. Example 1: Input: A = [4,7,9,10 ...
分类:
其他好文 时间:
2020-06-26 10:52:26
阅读次数:
72
Given a collection of numbers that might contain duplicates, return all possible unique permutations. Example: Input: [1,1,2] Output: [ [1,1,2], [1,2, ...
分类:
其他好文 时间:
2020-06-25 23:47:18
阅读次数:
92
离散化 int a[N]; vector<int>tmp; for(int i=0;i<N;i++) tmp.push_back(a[i]); sort(tmp.begin(),tmp.end()); tmp.erase(unique(tmp.begin(),tmp.end()),tmp.end() ...
分类:
编程语言 时间:
2020-06-25 23:36:03
阅读次数:
71
唯一索引和主键索引区别: 1)主键为一种约束,唯一索引为一种索引,本质上就不同; 2)主键创建后一定包含唯一性索引,而唯一索引不一定就是主键; 3)主键不允许空值,唯一索引可以为空; 4)主键可以被其他表引用,而唯一索引不可以; 5)主键只允许一个,唯一索引允许多个; 6)主键和索引都是键,主键是逻 ...
分类:
其他好文 时间:
2020-06-25 21:35:12
阅读次数:
159
一、unique_lock 的第二个参数 (1)std::adopt_lockunique_lock对象在构造的时候,不执行mutex::lock()所以必须要把互斥量提前 lock(),该参数与 lock_guard 使用相同 m_mutex1.lock(); // 使用adopt_lock 之前 ...
分类:
其他好文 时间:
2020-06-25 19:20:00
阅读次数:
98
1.先在mysql创建需要的数据库和表 use book; create table t_user( `id` int primary key auto_increment, `username` varchar(20) not null unique, `password` varchar(32) ...
分类:
数据库 时间:
2020-06-25 19:18:59
阅读次数:
176
1、遇到找不到模块 使用pytest.in配置文件,指定python搜索路径 [pytest] python_paths = C://xxx//xxx//pycharmProjects//project ...
分类:
其他好文 时间:
2020-06-25 12:04:07
阅读次数:
127