上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页
摘要: 题目: LeetCode46 I Given a collection of distinct numbers, return all possible permutations. (Medium) For example,[1,2,3] have the following permutation 阅读全文
posted @ 2016-09-05 22:40 wangxiaobao1114 阅读(443) 评论(0) 推荐(0) 编辑
摘要: 最近阅读UULP(Understanding Unix/Linux Programming),按照书中介绍对Unix/Linux系统编程进行学习梳理,总结如下。 1. who命令能做什么 who命令用于查看有谁在使用系统。 执行who命令。 其输出格式如下: ustc tty7 Sept 1 08: 阅读全文
posted @ 2016-09-03 14:22 wangxiaobao1114 阅读(611) 评论(0) 推荐(0) 编辑
摘要: 题目: Given an array of non-negative integers, you are initially positioned at the first index of the array. Each element in the array represents your m 阅读全文
posted @ 2016-09-02 22:41 wangxiaobao1114 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 题目: Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after rain 阅读全文
posted @ 2016-09-01 21:35 wangxiaobao1114 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 1.从函数模板谈起 函数模板的类型推导机制是在c++98时代就有的,auto的类型推导机制与其基本一致,所以先理解函数模板类型推导。 函数模板可以用如下代码框架表示: PT与T的不同之处在于PT相对于T可能有一些饰词(adornments),如const 和引用&。 对于模板类型T的推导是PT和ex 阅读全文
posted @ 2016-09-01 12:34 wangxiaobao1114 阅读(2949) 评论(0) 推荐(1) 编辑
摘要: 题目: Given an unsorted integer array, find the first missing positive integer. For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2. Your algorit 阅读全文
posted @ 2016-08-31 22:12 wangxiaobao1114 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary). You may assume that the intervals were in 阅读全文
posted @ 2016-08-30 22:48 wangxiaobao1114 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a collection of intervals, merge all overlapping intervals. For example,Given [1,3],[2,6],[8,10],[15,18],return [1,6],[8,10],[15,18]. (Hard) 阅读全文
posted @ 2016-08-30 22:42 wangxiaobao1114 阅读(1071) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. Each 阅读全文
posted @ 2016-08-27 23:01 wangxiaobao1114 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same re 阅读全文
posted @ 2016-08-26 21:11 wangxiaobao1114 阅读(218) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 17 下一页