IndiGo Flight Seat Availability Search
IndiGo Flight Seat Availability Search
EasyStrings0% accepted
IndiGo airline booking system in Bangalore needs to find the first available seat for a passenger. Seats are coded as row number (01-50) followed by a letter (A-F). Given a list of booked seats, return the lexicographically smallest available seat.
Approach
Given a comma-separated list of booked seat codes (like '01A,02C'), return the first available seat in format RRCC, checking rows 01-50 and columns A-F in order.
Input
01A,01B,01C,02A
Output
01D
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