leetcode-69 - Sqrt(x)

動機 我忘了lowerbound ...

July 24, 2021 · 1 min · zhengcf

leetcode-240 - Search a 2D Matrix II

動機 複習saddle back ...

July 23, 2021 · 1 min · zhengcf

leetcode-287 - Find the Duplicate Number

動機 這題有很多有趣的解法 ...

July 23, 2021 · 2 min · zhengcf

leetcode-34 - Find First and Last Position of Element in Sorted Array

動機 lowerbound與upperbound只差一個等號!! ...

July 22, 2021 · 1 min · zhengcf

leetcode-153 - Find Minimum in Rotated Sorted Array

動機 這題可以與33一起看,會有新的理解 ...

July 20, 2021 · 1 min · zhengcf

leetcode-209 - Minimum Size Subarray Sum

動機 與560不同他可以用sliding window prefix sum + binary search prefix sum in fly + sliding window ...

July 20, 2021 · 2 min · zhengcf

leetcode-300 - Longest Increasing Subsequence

動機 我們不要dp了,jojo ...

July 18, 2021 · 1 min · zhengcf

leetcode-349 - Intersection of Two Arrays

動機 iteratable可以轉成set ...

July 18, 2021 · 1 min · zhengcf

leetcode-35 - Search Insert Position

動機 複習lowerbound ...

July 17, 2021 · 1 min · zhengcf

leetcode-33 - Search in Rotated Sorted Array

動機 重新體驗binary search 這題可以與153一起看,會有新的理解 ...

July 16, 2021 · 2 min · zhengcf