Amazing...🤩Simple nd straight to the point.... Saved a lot of time in understanding the concept... Thank you... Can u please explain in English completely? As ppl like me who might find it difficult to understand in hindi...
Somebody help me in this problem Please write solution in javascript Write a function called do_allocation(number_of_people, number_of_buses) The function should return a list of number of people who can get into the next bus that comes in based on the following logic: Each bus’s capacity is the sum of the capacities of the previous two buses. Once all the people get in, then the buses can continue, but will have 0 people inside it. This is the case when the number of people are less and there are more buses. So after all the people are already boarded, then the remaining buses will have 0 people boarding. The output of the function is an array/list with the same length as number_of_buses. The total of this output array/list should be less than or equal to the number_of_people. The first bus’ capacity can be set to 1 by default. E.g. Def do_allocation(number_of_people, number_of_buses): …. Your code…. Return array[number of people got into first bus, number of people got into second bus, …. , number of people who got into last bus]
Thanks for creating such content with examples. Keep up the good work. All the best 🙂
We are waiting for lot more,please upload more videos,your videos are short and clear ,helpful to us ,try to upload atleast one or two per week
this was really a great video , got to learn so much , thanks for uploading such high quality stuff
Thanks for creating such a great content.
please continue your videos very helpful :)
Great content...would u love to do a Collab video ?
Amazing...🤩Simple nd straight to the point.... Saved a lot of time in understanding the concept... Thank you... Can u please explain in English completely? As ppl like me who might find it difficult to understand in hindi...
DSA Coding round can I use JavaScript? Which do you prefer? solving LinkedList, Tree is possible in javascript?
Why you have stopped uploading videos? 😢😢😢
Pls upload more videos..
hellllo.....when is ur next video coming?
What ise the future of nodejs in jobs and which has more jobs frontend react or backend nodejs
Mam mera kal react Js ka interview hai, koye suggestions do? Kiya kiya kar kay jaye.
mam great content, but why did you stop making videos , I know you would be busy but please start these series again
new videos coming very soon.
1st view
Somebody help me in this problem
Please write solution in javascript
Write a function called do_allocation(number_of_people, number_of_buses)
The function should return a list of number of people who can get into the next bus that comes in based on the following logic:
Each bus’s capacity is the sum of the capacities of the previous two buses.
Once all the people get in, then the buses can continue, but will have 0 people inside it.
This is the case when the number of people are less and there are more buses. So after all the people are already boarded, then the remaining buses will have 0 people boarding.
The output of the function is an array/list with the same length as number_of_buses.
The total of this output array/list should be less than or equal to the number_of_people.
The first bus’ capacity can be set to 1 by default.
E.g.
Def do_allocation(number_of_people, number_of_buses):
…. Your code….
Return array[number of people got into first bus, number of people got into second bus, …. , number of people who got into last bus]