LeetCode

Best Time to Buy and Sell Stock with Cooldown

Click here for an explanation.