Place The Numbers Game
CodeChefOpen on judge ↗
Anuj and Anurag are Playing a Game of arrays in which they are given an array of size N. Let's consider the indexing of array starts from 1. And they have to place the even array values at even indexes and odd array values at odd indexes. When the array size (i.e N) was small they both did the task easily but now the array size is too large and they are unable to do it. Now it's your job 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