上一页 1 ··· 68 69 70 71 72 73 74 75 76 ··· 98 下一页
摘要: Lists将元素按顺序储存在链表中. 与 向量(vectors)相比, 它允许快速的插入和删除,但是随机访问却比较慢. assign() 给list赋值 back() 返回最后一个元素 begin() 返回指向第一个元素的迭代器 clear() 删除所有元素 empty() 如果list是空的则返回 阅读全文
posted @ 2018-10-04 09:57 Veritas_des_Liberty 阅读(213) 评论(0) 推荐(0)
摘要: Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists. Example: 阅读全文
posted @ 2018-10-04 09:54 Veritas_des_Liberty 阅读(151) 评论(0) 推荐(0)
摘要: Given a linked list, remove the n-th node from the end of list and return its head. Example: Note: Given n will always be valid. Follow up: Could you 阅读全文
posted @ 2018-10-03 22:08 Veritas_des_Liberty 阅读(154) 评论(0) 推荐(0)
摘要: Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. A mapping of digit to le 阅读全文
posted @ 2018-10-03 21:11 Veritas_des_Liberty 阅读(227) 评论(0) 推荐(0)
摘要: Given an array nums of n integers and an integer target, are there elements a, b, c, and d in nums such that a + b + c + d = target? Find all unique q 阅读全文
posted @ 2018-10-02 22:41 Veritas_des_Liberty 阅读(151) 评论(0) 推荐(0)
摘要: Given an array nums of n integers and an integer target, find three integers in nums such that the sum is closest to target. Return the sum of the thr 阅读全文
posted @ 2018-10-02 22:02 Veritas_des_Liberty 阅读(156) 评论(0) 推荐(0)
摘要: Given an array nums of n integers, are there elements a, b, c in nums such that a + b + c = 0? Find all unique triplets in the array which gives the s 阅读全文
posted @ 2018-09-30 22:00 Veritas_des_Liberty 阅读(122) 评论(0) 推荐(0)
摘要: Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M. For example, two is written as II in Roman numeral, just two one's 阅读全文
posted @ 2018-09-30 20:48 Veritas_des_Liberty 阅读(174) 评论(0) 推荐(0)
摘要: 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 endp 阅读全文
posted @ 2018-09-30 09:19 Veritas_des_Liberty 阅读(190) 评论(0) 推荐(0)
摘要: Given an input string (s) and a pattern (p), implement regular expression matching with support for '.' and '*'. The matching should cover the entire  阅读全文
posted @ 2018-09-30 08:33 Veritas_des_Liberty 阅读(162) 评论(0) 推荐(0)
上一页 1 ··· 68 69 70 71 72 73 74 75 76 ··· 98 下一页