#dynamic-programming
Read more stories on Hashnode
Articles with this tag
Link: https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee · class Solution { public int maxProfit(int[] prices, int...
Link: https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-cooldown · class Solution { public int maxProfit(int[] prices) { int...
Link: https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iv · class Solution { public int maxProfit(int k, int[] prices) { int n =...
Link: https://leetcode.com/problems/best-time-to-buy-and-sell-stock-iii · class Solution { public int maxProfit(int[] prices) { // int n =...
Link: https://leetcode.com/problems/best-time-to-buy-and-sell-stock-ii · class Solution { public int maxProfit(int[] prices) { int n =...
Link: https://leetcode.com/problems/best-time-to-buy-and-sell-stock · class Solution { public int maxProfit(int[] prices) { int n =...