All challenges

Two pointers

Walking an array or string from both ends, or at two speeds, to avoid nested loops.

StatusChallengeLevelSave
1.Valid PalindromeCheck whether text reads the same both ways, ignoring case and punctuation.Easy
2.Merge Sorted ArraysMerge two sorted arrays into one sorted array.Easy
3.Move ZerosMove every zero to the end, keeping the other numbers in order.Easy
4.Squares of a Sorted ArraySquare every number of a sorted array and keep it sorted.Easy
5.Merge Two Sorted ListsJoin two sorted linked lists into one sorted list.Easy
6.Middle of a Linked ListFind the middle node of a linked list in one pass.Easy
7.Three SumFind every distinct triple of numbers that adds up to zero.Medium
8.Container With Most WaterPick two walls that hold the most water between them.Medium
9.Remove the Nth Node From the EndUnlink the node n places from the end of a linked list.Medium
10.Trapping Rain WaterWork out how much rain water a skyline of bars holds.Hard