← All problemsSign in

ALICE CHALLENGE

Alice and Bob are playing a game. Alice gave bob an array consisting of $N$ integers and challenges bob to make array a permutation of 1 to $N$ . The only change bob can do is that replace an element $A[i]$ of the array by $[Ai]$/3 any number of times. Bob can do the above operation any number of times. Help Bob to find out if he can complete the challenge of Alice. ### Input - The first li

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