1. think what part I stuck?
the DP formula,
ๆไปฅ่ฆ้ๅฐๆๆๆๅ็ตๅ, 3*3*3 = 27, ๅปๆ่
ABC
ABA
้ๅ ฉ็จฎ็ๆณไธ, ๆ้ค้ๅถๆขไปถๅพ, ๆๅฉๅนพๅ๏ผ
the detail of problem (vertical side, ไธ่ฝไธๆจฃ
ไนๅฐฑๆฏ้ไธๅๅฆๆๆฏ 010
ไธไธๅไธๅไฝ็ฝฎไธ่ฝ่ทไธไธๅไธๆจฃ
2. see solution, think about how this person came out this solution? whatโs their thought process, why we have the same question and same knowledge, but I cant?
ไธป่ฆ้ๆฏๆ่ๆๅ็ตๅ็้็จ, ่ฆๅๆ ABC ABA ๅ ฉ็จฎcase
3. note strategy! remember it!
ๆไปฅ็ญ็ฅๆฏไป้บผ๏ผ ่ฆๅจ็ leetcode 1349