← All problemsSign in

New Phone

Simmi got a new phone. The phone has a weird keypad. The 9 keys have peculiar letter arrangements, so she often takes long to type her messages. As she is a computer science student too, she decided to carve out a problem from this weird arrangement. She wants to find the minimum time required to type a message on the phone. A key press takes 1 ms to press. If the key 7 has the letters "axz", so t

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