RATING
CodeChefOpen on judge ↗
Chef has recruited $N$ workers in his restaurant. which involves male as well as female workers. As per their performance in the last few months chef gave them some ratings. Their ratings are arranged in an array $ratings[i]$ in an alternate manner. For eg. If the first rating is of a male worker, then the second will be of a female worker, and so on. Now, Chef wants to know who performed b
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