随笔分类 -  STL

摘要: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 阅读全文 »
posted @ 2018-11-18 12:29 Veritas_des_Liberty 阅读(174) 评论(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 阅读全文 »
posted @ 2018-11-10 16:58 Veritas_des_Liberty 阅读(297) 评论(0) 推荐(0) 编辑
摘要:Lists将元素按顺序储存在链表中. 与 向量(vectors)相比, 它允许快速的插入和删除,但是随机访问却比较慢. assign() 给list赋值 back() 返回最后一个元素 begin() 返回指向第一个元素的迭代器 clear() 删除所有元素 empty() 如果list是空的则返回 阅读全文 »
posted @ 2018-10-04 09:57 Veritas_des_Liberty 阅读(207) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示