Odd Even
CodeChefOpen on judge ↗
Problem description. A professor in NITD wants his students to sit in the front rows of the class, but the students prefer to sit in the back. He has thus devised a method of seating in which a student will be seated based on whether the roll number of the student is odd or even. He has asked your help for this. You will be given an array containing the roll numbers of the students. The prof
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