主要介绍: 数组(矩阵), 链表(单链表,双向链表)
常用STL函数:
distance, unique函数
// distance: The number of elements between first and last.
// unique(nums.begin(), nums.end(): An iterator to the element that follows the last element not removed.
// The range between first and this iterator includes all the elements in the sequence that were not considered duplicates.
distance(nums.begin(), unique(nums.begin(), nums.end())
remove(nums.begin(), nums.end(), target)
重点题目:
经典题目: Median Of two Sorted Arrays, 给定两个已经排序好的数组,找到两者所有元素中第k大的元素