-
[Leetcode] 74. Search a 2D Matrix {Day5 Array} (In Python)[Python] 파이썬/Leetcode_14Days plan for DataStructure 2021. 11. 28. 21:28
코드들은 https://github.com/Eastar-DS/Python/tree/main/14%20Days%20Study%20Plan%20about%20Data_Structure에도 있습니다
오늘의 마지막 LeetCode문제라그런지 row결정하는데 애좀 먹었다. 각 row의 첫숫자와 target을 비교하면서 자리를 찾았다.
디스커스를보고 바이너리 서치방식으로 바꿔서 다시 작성해보았다.
'[Python] 파이썬 > Leetcode_14Days plan for DataStructure' 카테고리의 다른 글
[Leetcode] 383. Ransom Note {Day 6 String} (In Python) (0) 2021.12.01 [Leetcode] 387. First Unique Character in a String {Day 6 String} (In Python) (0) 2021.12.01 [Leetcode] 36. Valid Sudoku {Day5 Array} (In Python) (0) 2021.11.28 [Leetcode] 566. Reshape the Matrix {Day4 Array} (In Python) (0) 2021.11.28 [Leetcode] 121. Best Time to Buy and Sell Stock {Day3 Array} (In Python) (0) 2021.11.27