Awesome Anku
CodeChefOpen on judge ↗
Anku is really awesome and a big fan of music thus her lover creates playlist for her. All the songs have # no. of likes and are arranged one after the another. Being a cool music lover, she removes the songs at the beginning of the list after listening to them, while her lover keeps on adding new songs with no. of likes at the end of list. At any time she wants to know the most liked song in the
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