Michael and Guitar Picks
CodeChefOpen on judge ↗
Michael is a guitar teacher and has N number of students. Positions of all the students in his class are fixed and they sit in a straight line. Everyone has a rating score based on their performance. One day as a token of appreciation he decided to give away ‘Guitar Picks’ to all his students. He laid down following rules to distribute the picks: 1. Everyone must get at least one pick. 2. One mu
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