309. Best Time to Buy and Sell Stock with Cooldown: 對于無法用一維dp解決的問題可以先尋求多維dp,然后再尋找其中transition function的關系
424. Longest Repeating Character Replacement: 這種類型的sliding window掌握的不好,還是要多加練習
總結(jié)
486. Predict the Winner:這題還可以用dp來做
309. Best Time to Buy and Sell Stock with Cooldown: 對于無法用一維dp解決的問題可以先尋求多維dp,然后再尋找其中transition function的關系
424. Longest Repeating Character Replacement: 這種類型的sliding window掌握的不好,還是要多加練習
總結(jié)
486. Predict the Winner:這題還可以用dp來做