Our Javascript Diary 🧩
Having fun
Thanks a lott
Having fun
Thanks a lott
Remaining with 1000 bananas
And 466.6KM
So we can make this in one trip
So 1banana/KM
1000-466.6(1) = 533 bananas
Remaining with 1000 bananas
And 466.6KM
So we can make this in one trip
So 1banana/KM
1000-466.6(1) = 533 bananas
We have 2000 bananas remaining
2 Loads
2 straight trips and 1 round trip will be 3banana/km
So remaining bananas at DROP2 are 2000-3y
and we will consider it to be equal to 1000
1000+2000 = 3y ..
Y= 333.3 KM
1000 BANANAS REMAINING
We have 2000 bananas remaining
2 Loads
2 straight trips and 1 round trip will be 3banana/km
So remaining bananas at DROP2 are 2000-3y
and we will consider it to be equal to 1000
1000+2000 = 3y ..
Y= 333.3 KM
1000 BANANAS REMAINING
So at STATION 1 .... WHICH IS X KM
so remaining bananas at station 1 are
3000- x*5
And when bananas left are less than 2000 we will only need 2 loads
So
2000 = 3000 - 5X
X = 200 Km
So first 200KM with 3 loads
So at STATION 1 .... WHICH IS X KM
so remaining bananas at station 1 are
3000- x*5
And when bananas left are less than 2000 we will only need 2 loads
So
2000 = 3000 - 5X
X = 200 Km
So first 200KM with 3 loads
Let's start
So initially from start point to point X
Camel move forward with bananas and come empty and repeat it 3 times since 3000> 1000
so we do have to take 5 trips
And since it's 5 trips it will be 5 🍌 per km
Let's start
So initially from start point to point X
Camel move forward with bananas and come empty and repeat it 3 times since 3000> 1000
so we do have to take 5 trips
And since it's 5 trips it will be 5 🍌 per km
3000 units of bananas
Destination of 1000 KM
MAX limit of 1000 banana in one go
Camel which eats one Banana for every km it travels
So here we use intermediate DROP STATIONS --- WHERE CAMEL CAN MAKE SEEVERAL SHORT TRIPS IN BETWEEN
3000 units of bananas
Destination of 1000 KM
MAX limit of 1000 banana in one go
Camel which eats one Banana for every km it travels
So here we use intermediate DROP STATIONS --- WHERE CAMEL CAN MAKE SEEVERAL SHORT TRIPS IN BETWEEN
The variation from ideal will tell us which one does have contaminated pills
The variation from ideal will tell us which one does have contaminated pills