LeetCode 127. Word Ladder

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Thank you for the video! I"m wondering how we print the path out? Should we store the parent node and its potential children into a hashmap, and then do a Dijkstra? hmm.. ohh or just a DFS with a path variable as well as k (shortest path length)?

fangle
Автор

what will be the overall time complexity of this code ?

ayushmaggo