← All problemsSign in

Caught Ya cheating

There is an exam going on in the campus and our invigilator Nidhi is very strict. Still students manage to cheat. If one copies an array of integers from some other student, any circular arrangement of the array is valid is an answer. The first number in the answer defines the circular arrangement chosen. But in hurry student copy the numbers at wrong places. You have to calculate the cheat numb

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