- You have a stack of pass-cards on the number of different types of transprota delivering from point A to point B.
- All pass-cards swapped
- You don't know where the trip ends - (unknown)
- Each pass-card contains information (how and where is the movement in this part of the route), and the type of transport (flight number, seat number, etc.)
Need to do:
- Create your own small js-framework for working with css classes dom elements.
- API should accept input unsorted list of pass-cards in the format invented by you and return, for example:
***Take train 78A from Madrid to Barcelona. Seat 45B.***
***Baggage will be automatically transferred from your last leg.***
***Take the airport bus from Barcelona to Gerona Airport. No seat
***From Gerona Airport, take flight SK455 to Stockholm. Gate 45B. Seat
￼￼3A. Baggage drop at ticket counter 344.***
***From Stockholm, take flight SK22 to New York JFK. Gate 22. Seat 7B.***
I. The algorithm should work with any number of pass-cards if the pass-cards all form one continuous chain.
II. Arrival and departure is unknown and unimportant. Vehicle for the next stretch of waiting for you.
III. The structure of the code must be extensible for all types of transport information that can be associated with each type of traffic.
V. Do not use any libraries and frameworks to make a code, make everything from scratch.
VI. Make documented comments in the code the input and output data. For all script