← All problemsSign in

Lottery Ticket

Shailja had recently bought a lottery ticket but unfortunately misplaced the ticket. She tried to remember the ticket number and was able to vaguely remember a number $n$ which could be the ticket number. But then she thought that she could get the order of the digits in the number $n$ wrong. Also she could "see" some digits multiple times, but the digits she saw were definitely in the real number

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