leetcode

Introduce

主要介绍: 数组(矩阵), 链表(单链表,双向链表)


Related Problems

Array

常用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)

重点题目:

Martix

Linked List