Steps
- sudo chown -R $USER:$USER . (For Linux user)
- docker-compose build
- docker-compose up
- docker-compose run web rake db:create
- http://localhost:3000
Assignment (BE)
Airplane Seating Algorithm
Write a program that helps seat audiences in a flight based on the following input and rules.
Rules for seating
- Always seat passengers starting from the front row to back, starting from the left to the right
- Fill aisle seats first followed by window seats followed by center seats (any order in center seats)
Input to the program will be
- A 2D array that represents the columns and rows - Ex. [[3,4], [4,5], [2,3], [3,4]]
- Number of passengers waiting in the queue.
Example
Given - A 2D array that represents the columns and rows - [[3,2], [4,3], [2,3], [3,4]]
DEMO https://www.loom.com/share/0f170dd904604fb6a14bea96384b0485