LEETCODE
UNLOCKED
Problems
Donate
Premium
Minimum Cost of Buying Candies With Discount
Solution Code
Time Complexity
O(
n log n
)
Space Complexity
O(
log n
)