Leetcode 1036(Hard) Escape a Large Maze: Simple C++ Solution
Автор: Shivam Patel
Загружено: 2020-08-05
Просмотров: 3142
In this video, I provide a simple solution with an explanation to the Leetcode 1036: Escape a Large Maze in the hard category. It first seems to be a trivial BFS problem, but solving it that way would result in over a terabyte in memory. Hence, with geometric insight and help from the conditions, we manage to bring down the complexity to O(b^2) where b is the number of blocked sqaures.
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: