Find Minimum Time to Reach Last Room II | LeetCode 3342 - Python

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

great tutorial. Very similar to yesterdays problem but with just some additional logic. Thanks

riddle-me-ruben
Автор

instead of having seconds in the queue, I just used the logic that if sum(ni, nj) is even we need to add 2 seconds, if it is odd we add 1 second.

rehanaziz
welcome to shbcf.ru