leetcode
309. Best Time to Buy and Sell Stock with Cooldown
Solution code
Time complexity: O(n)
Space complexity: O(1)