Ganesha and his Modak
CodeChefOpen on judge ↗
Ganesha’s favourite sweet is Modak, There are $N$ sweet shops numbered $0$ to $N-1$, which offer a Modak to Ganesha. Each Modak has a specific amount of sugar, Ganesha loves to eat all of them but he is concerned about his health he can eat only two Modaks with a particular amount of sugar per day. Since you are a good friend of Ganesha, he has asked you to help him, You will be given an array o
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start