Minimized Maximum of Products Distributed to Any Store | Leetcode 2064

  Рет қаралды 3,323

Techdose

Techdose

Күн бұрын

Пікірлер: 26
@walky4158
@walky4158 Ай бұрын
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
@techdose4u Ай бұрын
wowww :)
@MAHALAKSHMIVEERARAJ
@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
@techdose4u Ай бұрын
yepp :)
@badboy-ku6uc
@badboy-ku6uc Ай бұрын
nice explanation sir , thank you
@techdose4u
@techdose4u Ай бұрын
welcome:)
@akashchaudhury3240
@akashchaudhury3240 Ай бұрын
Really helpfull
@techdose4u
@techdose4u Ай бұрын
Glad it helped
@shatulbansal4756
@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
@techdose4u Ай бұрын
This works for all scenarios but some cool coders dont wanna use an extra variable answer check :)
@sailendrachettri8521
@sailendrachettri8521 Ай бұрын
Kind of hard :( but Keep pushing forwared :)
@techdose4u
@techdose4u Ай бұрын
Persistence is key :)
@AkshithKumar-hm4ws
@AkshithKumar-hm4ws Ай бұрын
I would appreciate it if you could provide some insights on how to approach problem-solving with ease.
@techdose4u
@techdose4u Ай бұрын
Keep practicing :) You will get better!
@balavikashkandukuri6139
@balavikashkandukuri6139 Ай бұрын
I guess it's approach is a bit similar to Kokos eating banana. If I am not wrong
@techdose4u
@techdose4u Ай бұрын
yepp
@laxmannarkhede8116
@laxmannarkhede8116 Ай бұрын
could you tell why you take max(arr) to have range
@techdose4u
@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
@siavashjafarpour7645 Ай бұрын
I think in your last example the max number of products to minimize the answer was 3, not 5
@techdose4u
@techdose4u Ай бұрын
Can you please share the timestamp to check
@siavashjafarpour7645
@siavashjafarpour7645 Ай бұрын
15:42
@21flame72
@21flame72 Ай бұрын
i need to rewatch littile bit confusing
@techdose4u
@techdose4u Ай бұрын
hope you get it :)
@21flame72
@21flame72 Ай бұрын
@@techdose4u Yes Sir thankYou sir
Defuse the Bomb | Leetcode 1652
19:32
Techdose
Рет қаралды 2,8 М.
"Simple Made Easy" - Rich Hickey (2011)
1:01:39
Strange Loop Conference
Рет қаралды 103 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 45 МЛН
Special Array II | Leetcode 3152
13:49
Techdose
Рет қаралды 4,3 М.
Reverse Odd Levels of Binary Tree | Leetcode 2415
11:07
Techdose
Рет қаралды 2,2 М.
Move Pieces to Obtain a String | Leetcode 2337
19:53
Techdose
Рет қаралды 5 М.
Making an Algorithm Faster
30:08
NeetCodeIO
Рет қаралды 175 М.
Take K of Each Character From Left and Right | Leetcode 2516
22:38
I Solved 1583 Leetcode Questions  Here's What I Learned
20:37
ThePrimeTime
Рет қаралды 761 М.
What Makes A Great Developer
27:12
ThePrimeTime
Рет қаралды 222 М.
Systems Design in an Hour
1:11:00
Jordan has no life
Рет қаралды 33 М.
Shortest Subarray with Sum at Least K | Leetcode 862
21:31
Techdose
Рет қаралды 38 М.