This is the hardest problem of this entire month to understand. I have no idea what went through my mind when I first read it; it was as if my soul died three times, lol. But then I remembered, "Yeah, we have Techdose with us," and came here and understood it fully! That was a really helpful explanation!
@techdose4uАй бұрын
wowww :)
@MAHALAKSHMIVEERARAJАй бұрын
As you've mentioned in the video, this problem is exactly similar to the "Capacity to Ship Packages Within D Days" binary search problem. Thank you so much!
@techdose4uАй бұрын
yepp :)
@badboy-ku6ucАй бұрын
nice explanation sir , thank you
@techdose4uАй бұрын
welcome:)
@akashchaudhury3240Ай бұрын
Really helpfull
@techdose4uАй бұрын
Glad it helped
@shatulbansal4756Ай бұрын
Hi, Nice solution. I have a query, like you are using mid index to find the answer in binary search code and updating the low & high accordingly, so does this kind of approach works for all binary search questions?? Or do we need to find answer using low or high indices also in some of the binary search questions??
@techdose4uАй бұрын
This works for all scenarios but some cool coders dont wanna use an extra variable answer check :)
@sailendrachettri8521Ай бұрын
Kind of hard :( but Keep pushing forwared :)
@techdose4uАй бұрын
Persistence is key :)
@AkshithKumar-hm4wsАй бұрын
I would appreciate it if you could provide some insights on how to approach problem-solving with ease.
@techdose4uАй бұрын
Keep practicing :) You will get better!
@balavikashkandukuri6139Ай бұрын
I guess it's approach is a bit similar to Kokos eating banana. If I am not wrong
@techdose4uАй бұрын
yepp
@laxmannarkhede8116Ай бұрын
could you tell why you take max(arr) to have range
@techdose4uАй бұрын
because the largest assignment will be that the entire chunk is assigned to 1 person. As 1 person will only get product of the same type :) So, we may end up with 1 item and 1 person and the item in the worst case could be the largest. You cant get any higher assignment hence its the upper bound of our possible answer.
@siavashjafarpour7645Ай бұрын
I think in your last example the max number of products to minimize the answer was 3, not 5