Data structures and algorithms
0 of 49 solved
49 questions
- Most meetings in one roomGreedyMediumCoding
- Fewest hops to cross a line of stepping stonesGreedyMediumCoding
- Fewest moves through a gridGraphs (BFS)MediumCoding
- How many connected groups?Graphs (DFS / union-find)MediumCoding
- Plan an order to take courses with prerequisitesGraphsMediumCoding
- Can rivals be split into two teams?GraphsMediumCoding
- Fewest dice throws on a ladders-and-snakes boardGraphsMediumCoding
- K-th largest numberHeapsMediumCoding
- The k most frequent valuesHeapsMediumCoding
- Longest run of consecutive numbers (unsorted input)HashingMediumCoding
- Reverse a section of a linked listLinked listsMediumCoding
- Remove the k-th node from the end in one passLinked listsMediumCoding
- Weave a linked list from both endsLinked listsMediumCoding
- Spiral tour of a seating gridMatrixMediumCoding
- Where to start a circular fuel routeGreedyMediumCoding
- Longest stretch with no repeated characterSliding windowMediumCoding
- Next taller student to the rightStacksMediumCoding
- Convert an expression to postfixStacksMediumCoding
- Group words that use the same lettersHashingMediumCoding
- Longest piece that reads the same both waysStringsMediumCoding
