Question: Please write code in C++ and comment out code Given a bench with n seats and few people sitting, tell the seat number each time
Please write code in C++ and comment out code
Given a bench with n seats and few people sitting, tell the seat number each time when a new person goes to sit on the bench such that his distance from others is maximum.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
