← All problemsSign in

Group Codes

In a far off land, people are divided into groups and every group is given a group code. The groups are split in such a way that in a group with a group code of x digits, there are x! members. All group codes are in the range 10 to 9999. The digits of the group code are permuted to give each member his number. The greatest number formed by those digits denote the eldest member in the group, an

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start