Alice and Bob
CodeChefOpen on judge ↗
Two friends Alice and Bob were once quarreling among themselves as to who will get hold of the box of chocolates brought by their aunt. Alice, shrewd and cunning as she is, makes a plan to stop this issue and get hold of the box. She challenged Bob a problem which he has to solve then and there only in front of her. The problem is stated very simply as: Given an array of N non - negative integer
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