2713. Maximum Strictly Increasing Cells in a Matrix (Leetcode Hard)

preview_player
Показать описание
Larry solves and analyzes this Leetcode problem as both an interviewer and an interviewee. This is a live recording of a real engineer solving a problem live - no cuts or edits!

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

Thanks for the explanation, I was stuck with tle, but with your optimization, I just add 1 && condition, now it's accepted.

gauravupreti
Автор

i came up with same idea in the contest but i don't know why but i choose to write my own function, for getting next greater element instead of using bisect module and i got TLE in contest 😑😑 just replaced my binary search function with bisect function and it got accepted

mememaster
visit shbcf.ru