Tiffin Route Abbreviation Code
Tiffin Route Abbreviation Code
EasyStrings0% accepted
Ravi manages a dabba delivery service in Mumbai with routes like 'Connaught,Place,Road'. Long route names create confusion on delivery maps, so he creates short codes from the first letters of each stop.
Approach
Create a route abbreviation code from comma-separated stop names by extracting the first letter of each stop.
Input
Connaught,Place,Road
Output
CPR
More Strings problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards