Recent posts

LeetCode 2312. Selling Pieces of Wood

周賽298。雖然知道是DP但不知道怎麼切塊,想了半天想不出,好苦。 雖然官方標籤有個回溯,但我還真沒看到有人用回溯解法。