LeetCode 968. Binary Tree Cameras
每日題。本以為是樹型DP,結果也可以不用DP。
每日題。本以為是樹型DP,結果也可以不用DP。
相似題2305. fair distribution of cookies。與其說相似不如說是升級版,測資更大而已。
每日題。之前寫過兩次,但是完全看不懂之前在寫什麼鬼,整個思路都不一樣了。
每日題。其實就是1143. longest common subsequence的變種。
周賽297。當時想到了以前綴、後綴分組,但就是沒想到用集合做運算,只通過74/89測資。