Sponsored
Reserved space — layout preview until AdSense is connected
Data Structures & Algorithms
medium
BFS level-order traversal
Return the level-order traversal of a binary tree as a list of lists.
BFS
trees
queues
Data Structures & Algorithms
hard
Topological sort (Kahn)
Return a valid topological ordering of tasks, or [] if a cycle exists.
graph
BFS
topological-sort
Data Structures & Algorithms
hard
Word ladder length
Return the length of the shortest transformation from beginWord to endWord changing one letter at a time.
BFS
graph
strings
Showing 3 challenges