随笔分类 - STL
发表于 2018-11-18 12:29阅读:174评论:0推荐:0
摘要:Given an array A of integers, return true if and only if it is a valid mountain array. Recall that A is a mountain array if and only if: A.length >= 3
阅读全文 »
发表于 2018-11-10 16:58阅读:297评论:0推荐:0
摘要:Return the length of the shortest, non-empty, contiguous subarray of A with sum at least K. If there is no non-empty subarray with sum at least K, ret
阅读全文 »
发表于 2018-10-04 09:57阅读:207评论:0推荐:0
摘要:Lists将元素按顺序储存在链表中. 与 向量(vectors)相比, 它允许快速的插入和删除,但是随机访问却比较慢. assign() 给list赋值 back() 返回最后一个元素 begin() 返回指向第一个元素的迭代器 clear() 删除所有元素 empty() 如果list是空的则返回
阅读全文 »