Implement train compartment seat functions
Filed under Media.net
The question
Given a train compartment's seating arrangement, implement functions to determine whether a seat number is a window seat, find its row number, and find the nearest window seat.
No write-up yet. Related questions below have one.
Related Media.net questions
Collected from public candidate posts and coding forums. Updated Nov 2026.