摘要: Given a set of distinct integers, nums, return all possible subsets (the power set). Note: The solution set must not contain duplicate subsets. Exampl 阅读全文
posted @ 2018-09-04 22:22 康托漫步 阅读(404) 评论(0) 推荐(0) 编辑
摘要: Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and put. get(key) - Get the 阅读全文
posted @ 2018-09-04 15:31 康托漫步 阅读(129) 评论(0) 推荐(0) 编辑
摘要: list::splice实现list拼接的功能。将源list的内容部分或全部元素删除,拼插入到目的list。 函数有以下三种声明: void splice ( iterator position, list<T,Allocator>& x ); void splice ( iterator posi 阅读全文
posted @ 2018-09-04 14:35 康托漫步 阅读(861) 评论(0) 推荐(0) 编辑