Articles in this series
How to remove a node from a linked-list · Problem statement Given the head of a linked list and an integer val, remove all the nodes of the linked list...
Basic string operations · Problem statement Every valid email consists of a local name and a domain name, separated by the '@' sign. Besides lowercase...
How to transform a 2D vector into a 1D one · Problem statement Given a 2D grid of size m x n and an integer k. You need to shift the grid k times. In one...
An example of using the binary search algorithm · Problem statement You are given a sorted array consisting of only integers where every element appears...
How to swap two nodes in a linked-list · Problem statement Given a linked list, swap every two adjacent nodes and return its head. You must solve the...
What is a mountain array · Problem statement Given an array of integers arr, return true if and only if it is a valid mountain array. Recall that arr is...