in the help ramu question why do we multiply c1 with rick[i]. we need to multiply c1 with the number of trips and not the number of rickshaw
Help ramu question
Hello @Siddhantm,
rick[i]: no. of rides taken on ith rickshaw.
c1: cost of each ride.
c2: cost of unlimited ride on any one rickshaw.
So, you compute
c1*rick[i]: total fare if i pay c1 for each ride on ith rickshaw.
and then compare it with c2.
and store the lesser amount.
Hope, i have cleared your doubt.
Give a like, if you are satisfied.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.