I was trying to understand the code that other user submitted as an answer to the leetcode binary search question called "kWeakestRows".
Suppose I have a 2D