Leetcode - 35. Search Insert Position
此篇文章為我的解題紀錄,程式碼或許並不是很完善
Leetcode - 35. Search Insert Position
解題思路
跑迴圈一個一個element檢查是否有大於target
的,若是有,則即刻回傳index
我滴程式碼
1 | class Solution: |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment
GitalkFacebook Comments