Insert at even
CodeChefOpen on judge ↗
Aditya is obsessed with even numbers and consider them lucky. One day he was given task of managing the the database for his company he was given location of important files and he needs to keep them safe. So he decided to store this files in special way for that he needs to remove odd number from his list. In order to do this he decided to increment the value of all the odd integers in the list a
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