← All problemsSign in

Jack, Rose and Stones

Jack and Rose were fond of collecting stones. One fine evening, they went to hill and collected some special looking stones. Both of them wanted to keep some stones with them so they decide to divide the stones between them. Both Jack and Rose had a habit of keeping things in even numbers, so they need your help. Given there are N number of stones, help Jack and Rose to find out whether they can d

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start