← All problemsSign in

Market Arrangement

There is a $market$ in $Chef Land$ with $N$ shops, marked from integers $0$ to $9$. Now, some of these shops (0 or more) from the $end$ of the market were cyclic shifted or in other words moved from the $end$ to the $beginning$ of the market without changing the internal arrangement of the shops in the market. For two arrangement of the same length $A$ and $B$, let's say $A$ is a cyclic sh

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