Leetcode 1824 - Minimum Sideway Jumps

動機 oh Floyd-Warshall,我忘了!! 原來還可以這樣解loop ...

April 21, 2024 · 2 min · zhengcf

Leetcode 2140 - Solving Questions With Brainpower

動機 記憶化搜尋與dp的分界是? ...

April 20, 2024 · 2 min · zhengcf

Leetcode 611 - Valid Triangle Number

動機 two ptr!! 我忘了!! ...

April 20, 2024 · 1 min · zhengcf

Leetcode 2770 - Maximum Number of Jumps to Reach the Last Index

動機 就是search,不太算是DP? 說到底dp到底是什麼 ...

April 20, 2024 · 2 min · zhengcf

Leetcode 403 - Frog Jump

動機 為什麼沒有loop啊? ...

April 20, 2024 · 2 min · zhengcf

Leetcode 740 - Delete and Earn

動機 想像要自由一點 ...

April 17, 2024 · 2 min · zhengcf

Leetcode 540 - Single Element in a Sorted Array

動機 LC不講武德,不小心按到組合鍵就被submit了 bsearch的重點是要丟棄的範圍 ...

April 16, 2024 · 1 min · zhengcf

leetcode-1539 - Kth Missing Positive Number

動機 猜數字 ...

July 30, 2022 · 1 min · zhengcf

leetcode-888 - Fair Candy Swap

動機 直接求數字就好 ...

July 30, 2022 · 2 min · zhengcf

leetcode-1608 - Special Array With X Elements Greater Than or Equal X

動機 猜數字 ...

July 30, 2022 · 2 min · zhengcf