一、集合的创建: 2、集合的增 add update():在对集合增加元素的时候是迭代增加到集合中的。 3、集合的删 二、集合的其他操作 1、交集。(&或者intersection) 2、并集。(|或者union) 3、反交集。(^或者symmetric_difference) 4、差集。(-或者d ...
分类:
其他好文 时间:
2017-10-27 21:28:50
阅读次数:
115
在stackoverflow中有这样一句话: The reflection layer wraps any exception in an InvocationTargetException, which lets you tell the difference between an excepti ...
分类:
编程语言 时间:
2017-10-25 21:20:58
阅读次数:
193
You are given two integer arrays nums1 and nums2 sorted in ascending order and an integer k. Define a pair (u,v) which consists of one element from th ...
分类:
其他好文 时间:
2017-10-25 18:14:25
阅读次数:
170
Given a non-negative integer num represented as a string, remove k digits from the number so that the new number is the smallest possible. Note: The l ...
分类:
其他好文 时间:
2017-10-25 00:34:36
阅读次数:
151
Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix. Note that it is th ...
分类:
其他好文 时间:
2017-10-24 16:07:33
阅读次数:
100
Write a SQL query to delete all duplicate email entries in a table named Person, keeping only unique emails based on its smallest Id. For example, aft ...
分类:
其他好文 时间:
2017-10-24 13:18:46
阅读次数:
148
Given two strings s and t which consist of only lowercase letters. String t is generated by random shuffling string s and then add one more letter at ...
分类:
其他好文 时间:
2017-10-23 21:40:38
阅读次数:
157
Given a binary tree, return the tilt of the whole tree. The tilt of a tree node is defined as the absolute difference between the sum of all left subt ...
分类:
其他好文 时间:
2017-10-22 21:46:34
阅读次数:
165
Description A word consisting of lower-case letters of the English alphabet ('a'-'z') is given. We would like to choose a non-empty contiguous (i.e. o ...
分类:
其他好文 时间:
2017-10-20 18:26:20
阅读次数:
139
A sequence of number is called arithmetic if it consists of at least three elements and if the difference between any two consecutive elements is the ...
分类:
其他好文 时间:
2017-10-19 21:16:10
阅读次数:
266