PHONEBOOK DILEMMA
CodeChefOpen on judge ↗
When we start dialling a number in our mobile phones, suggestions crop up on the screen from our saved contacts. Suppose a number is saved as 9433019343, and we start typing 94, then this above number will show up. Now this seemed too boring to Mr Sinha and he installed a special phone dialler app. This app matches the subsequence typed with all the phone numbers where that subsequence is presen
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