Leetcode 74 - Search A 2D Matrix (JAVA Solution Explained!)

preview_player
Показать описание
Leetcode 74 - Search A 2D Matrix (JAVA Solution Explained!).

If you like this video, please 'Like' or 'Subscribe'. This is really helpful for my channel and also motivates me to do more. My goal is to finish 100 Leetcode problems in the following months. Stay tuned!
Рекомендации по теме
Комментарии
Автор

Outstanding solution. Your solution is by far the simplest and the best practice code. Many solutions deal with separate rows or columns and try to separate them to find out which row or column to perform binary search, which is unintuitive or overly complicated. Your linear array approach is the best and the simplest, if one can think about how to manipulate 2D array in a linear way. The fastest at 100% in leetcode. Thank you!!

alexshay
visit shbcf.ru