摘要:
题目: 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 algor 阅读全文
摘要:
3Sum: 题目: Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three 阅读全文
摘要:
题目: Given n non negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two e 阅读全文
摘要:
这里简单的澄清一下Python中下面几个概念: 容器 可迭代对象 迭代器 生成器 1.烦人的概念 容器这个概念不妨就按照字面意思来理解,指能将一些元素组织在一起的一种数据结构,你可以通过 in 或者 not in 这样的关键字判断某个指定的元素是否包含在容器中。通常来说,容器会将所有的元素都存放到内 阅读全文