+ 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.

6th Dec 2020, 1:09 PM
Abdur Rahman
Abdur Rahman - avatar
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
16th Dec 2020, 12:46 PM
Lam Wei Li
Lam Wei Li - avatar