Number Arrangement
CodeChefOpen on judge ↗
Our chef is a teacher in a school named lobhabul Canadians.and there are N number of students numbered from 1 to N in his class. One day he decided to check the logical and thinking ability of his students by making them perform a fun activity. He told every student to write any number M and made them stand in a row.Let a1,a2 ...an be the number chosen by students 1,2,3,...,N. Your task is to
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.
Sign in to chat with the tutor and save your progress.
Sign in to start