LeetCode 2310. Sum of Numbers With Units Digit K
周賽298。超級多edge case的數學題,吃了一個WA兩個TLE才釐清所有狀況。
周賽298。超級多edge case的數學題,吃了一個WA兩個TLE才釐清所有狀況。
周賽298。python真的是字串處理的神,直接秒殺有夠方便。倒是我後來用java寫卡了超過五分鐘。
每日題。一樣又是字典樹,這次我就乖乖照著出題者想法做了。
每日題。好像是想考字典樹吧,結果被我偷雞偷過了。字典樹的解法很多種,但沒一種我覺得容易理解的。
隨便抽的題,一開始看到矩陣裡面每列都有序,就想到二分搜。但想不出怎麼搜,看了提示竟然要我用heap。