← All problemsSign in

Ordered Indexed Array

###Statement Chef is still playing with an array **A** of size **N**. Now he loves to check if A is **Ordered Indexed** array or not. He start from index 0 and reached to last index in exactly **M** moves. The property of an **Ordered Indexed** array is that at any index, one can move forward or backward by a number of steps that is equal to a prime divisor of the value which exists at that

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