Experiment
CodeChefOpen on judge ↗
A scientist had two large jars before him as if they are mirror image to each other on the laboratory table. The jar on his left contained a hundred fleas; the jar on his right was empty. The scientist carefully lifted a flea from the jar on the left, placed the flea on the table between the two jars, stepped back and in a loud voice said, "Jump." The flea jumped and was put in the jar on the righ
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