InterviewBit Problems   Distribute Candy : Solved


Linear time Solution in C++ (1)
This can also be solved by converting the array into a directed graph and then DF (3)