Given two integer arrays prices and profits of the same length, where prices[i] represents the price of the profits[i] represents the profit of the
Find three indices i, j, and k such that:
prices[i] prices[j] prices[k]
Return the maximum possible profit sum profits[i] + profits[j] + profits[k]. If no such triplet exists, return
Constraints:
prices.length == profits.length
prices[i]
profits[i]
Given two integer arrays prices and profits of the same length, where prices[i] represents the price of the profits[i] represents the profit of the
Find three indices i, j, and k such that:
prices[i] prices[j] prices[k]
Return the maximum possible profit sum profits[i] + profits[j] + profits[k]. If no such triplet exists, return
Constraints:
prices.length == profits.length
prices[i]
profits[i]