Be prepared

Topics: Array (Stack, Queue, Pointer) Quick find all primes Greatest common divisor Find the next greater element (monotone stack) Longest consecutive subarray (swaped queue) Remove duplicates in sorted array Interval intersection Merge intervals Pancake sorting LinkedList Circle in a linkedlist (fast&slow pointer) Linkedlist reverse Remove Nth from the end Heap (PriorityQueue) Find the Kth largest …