leetcode Solutions commited here as a record. Tips Python debug print use f string to display variable name and value at the same time print(f"{row_num=} {col_col=}") The output is: row_num=3 col_col=4