Practice · judged on hidden tests
Problems
54 problems, ordered so each topic builds on the last.
- Not startedBest day to buy and sellArrays, Dynamic programmingEasy
- Not startedBinary search on a sorted list someone rotatedArrays, Binary searchMedium
- Not startedBlank out every row and column holding a zeroArrays, MatricesMedium
- Not startedBuilding Pascal's triangle row by rowBasics, Arrays, Dynamic programmingEasy
- Not startedCan it be split into two equal halvesArrays, Dynamic programmingMedium
- Not startedCan you get to the endArrays, GreedyMedium
- Not startedCombine the ranges that overlapArrays, Sorting, GreedyMedium
- Not startedContains duplicateHash sets, ArraysEasy
- Not startedEvery subset, in orderArrays, BacktrackingMedium
- Not startedEvery way to make the targetArrays, BacktrackingMedium
- Not startedFind it by halvingArrays, Binary searchEasy
- Not startedFitting the most value into the bagArrays, Dynamic programmingMedium
- Not startedHow far the list is from sortedArrays, SortingHard
- Not startedHow long this price has been the bestStacks and queues, ArraysMedium
- Not startedHow long until it gets warmerStacks and queues, ArraysMedium
- Not startedHow many must you dropArrays, Sorting, GreedyMedium
- Not startedHow many triples add to zeroArrays, Sorting, Two pointersMedium
- Not startedHow many ways down through the gridArrays, Dynamic programming, MatricesMedium
- Not startedLongest run of consecutive numbersHash sets, ArraysMedium
- Not startedMaximum subarray sumArrays, Dynamic programmingMedium
- Not startedMerging many sorted lists at onceArrays, Heaps, SortingHard
- Not startedMost frequent numbersArrays, Hash maps, HeapsMedium
- Not startedMove the zeroes to the endArrays, Two pointersEasy
- Not startedProduct of everything elsePrefix sums, ArraysMedium
- Not startedRead the grid in a spiralArrays, MatricesMedium