CODERS RANKING
CodeChefOpen on judge ↗
Venkatesh the coder has come up with an idea to rank his fellow coders. His idea is to use the first name of the coders and rank them according to his own ranking algorithm. Suppose the first name of some coder is "duk"(Venkatesh does not like capital letters). Venkatesh then wrote all permutations of the letters of "duk" in descending order. ukd, udk, kud, kdu, duk, dku. Now he numbers each pe
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