Given an array a, reverse it in-place.
Given array a and integer k, return the left-rotated array.
Given sorted array a and target t, return indices of the pair that sums to t.
Given string s, return True if it's a palindrome.
Given sorted arrays a and b, return a single merged sorted array.
Reverse a singly linked list in-place.
Detect if a linked list has a cycle using O(1) space.
Find the node where the cycle begins in a linked list.
Find the middle node of a linked list.
Merge two sorted linked lists into one sorted list.
Merge two sorted arrays into one sorted array.
Given n vertical lines, find two that form a container holding the most water.
Given n non-negative integers representing an elevation map, compute how much water it can trap.
Given array nums, find all unique triplets that sum to zero.
Given a sorted array, remove duplicates in-place and return the new length.