All problems
Two pointers problems
14 problems: 6 easy, 7 medium and 1 hard. Start at the top; each one assumes the ones above it.
- Not startedEasyDoes this list loop back on itselfLinked lists, Two pointers
- Not startedEasyFind the middle in one passLinked lists, Two pointers
- Not startedEasyIs it a palindromeTwo pointers, Strings
- Not startedEasyMove the zeroes to the endTwo pointers, Arrays
- Not startedEasySqueeze out the duplicatesTwo pointers, Arrays
- Not startedEasyTwo sum in a sorted listTwo pointers, Arrays, Binary search
- Not startedMediumBreak the loop and leave the listLinked lists, Two pointers
- Not startedMediumDrop the nth node from the endLinked lists, Two pointers
- Not startedMediumHow many nodes the loop goes roundLinked lists, Two pointers
- Not startedMediumHow many triples add to zeroTwo pointers, Arrays, Sorting
- Not startedMediumSorting 0s, 1s and 2s in one passTwo pointers, Arrays, Sorting
- Not startedMediumThe widest, deepest containerTwo pointers, Arrays, Greedy
- Not startedMediumWhere the loop beginsLinked lists, Two pointers
- Not startedHardWater held between the barsTwo pointers, Arrays, Stacks and queues