GOKOOL and his STUDIES
CodeChefOpen on judge ↗
Gokool an intelligent boy is in his first year. He is always craving for learning new concepts. Given a set of topics, he will study the topics in a pattern in which he can learn the maximum number of topics. He will study a topic only if it is harder than the previous topic. The difficulty of a topic is an integer. The greater the number, the harder is the topic. Given a set of topics, our job
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