Peer Pressure
CodeChefOpen on judge ↗
Anand and Tushar own a multinational company and from this year they are planning to hire Interns for the role of software development. They both are smart and want to hire interns based on their skills only so they came up with a plan. They called all the N interns and asked them to stand in a line and numbered them from 1 to N. Moreover there is an Intelligence value associated with each Inte
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