Greedy Algorithms - Candy Distribution
Given the following code snippet implementing the optimal candy distribution algorithm, what is the final returned value when input ratings = [1, 0, 2]?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions