+ 2
Can anyone help me with the Transportation puzzle in the c++ course?
I am stuck in this problem for a long time,the instructions are clear yet unclear, i tried to solve it with basic arithmetic but i seem to mess up the order.
1 Answer
+ 2
A simple three lines of code implementation.
First, you use the modulus function to find the remainder, which are the passengers on the last bus.
Then, to find the empty seats, you use bus capacity minus away the last passengers.
https://code.sololearn.com/cAsIKRZH3quK/?ref=app