LeetCode 2617. Minimum Number of Visited Cells in a Grid April 11, 2023 周賽339。和上週的Q4有點類似,都會重複訪問到同一個位置數次,需要用一些方法優化。
LeetCode 2616. Minimize the Maximum Difference of Pairs April 11, 2023 周賽339。python內建二分函數真的很好用,大概可以省下一分鐘的打字時間。