First Question Concept is very Important, usko samjho achee se dry run karke, wo aagya, fr next 2 problem 2 min mein solve kar doge... There is one small correction in video, at 19:00 , when we are taking mid of 90 and 116 it should be 103 not 108. But that small mistake will not impact our answer, so keep going
@@CHAUDHARY_PRAYAS Bhai first question mein pehle brute force hi samjahya hai, uske baad binary search lagaya hai.. Aage se dhyan rkung ki brute force ka bhi code likhne ka pehle
00:02 Binary Search Interview Problems 02:21 Discussing the allocation of books with equal number of pages to two children. 06:37 Using binary search to find the maximum number of pages that can be allocated to a child. 08:29 Starting point selection based on maximum value in the array 12:27 Using binary search to find minimum pages required for book distribution. 14:18 Strategies for efficient binary search 18:19 Algorithm for allocation of books based on binary search 20:14 Explaining binary search concept with a practical example. 23:48 Implementing logic for book distribution based on binary search 25:46 Binary search algorithm in book allocation and student distribution. 29:38 Understanding the distribution process for binary search 31:30 Binary search algorithm explained with detailed example 35:11 Explaining the logic behind book distribution 36:56 Efficient distribution of specified values among children. 41:15 Discussing binary search strategy for a problem 43:21 Binary search algorithm for finding the answer within a range 47:17 Binary Search for Book Allocation 49:07 Determining if a valid book assignment is possible 53:02 Discussing the Painter Partition problem 55:09 Allocation of walls and painting time minimization 58:35 Binary search algorithm to find optimal solution within constraints. 1:00:17 Finding optimal time for completion of painting task 1:03:53 Painter Partition Problem solving and implementation details 1:05:48 Debugging errors related to data type overflow in code. 1:09:30 Determining minimum weight capacity of ship for parcel distribution 1:11:19 Understanding the binary search pattern for minimum and maximum problems
Hey Rohit Bhai, you really are a baap teacher. Just keep continuing this project as if its your child.. Mai picche se aa rha hu and trust me, at the end of all this and while this is happening you will be among the very few Gurus that are actually able to teach. Thanks Man, bhai, Sir. We owe you a lot.. Love, Regards and Peace, thanks for being..,🙌✌
Rohit bhai, I am specially writing this feedback to you, Bhai, day 33 pe aapne jo bhi sikhaya wo lecture maine us din dekha pr mujhe literally kuch bhi nahi samajh aaya aur iss cheez se frustrate hokar maine sat-sunday kuch bhi DSA nahi padha par aaj maine aapka 'QUIT CODING NOW' wala video dekha aur phirse aapka day-33 wala lecture study kiya and guess what muze poora concept samajh aaya aur maine saare questions bhi khud se kar liye.. I don't know why this happened but I thought I should share this feedback with you therefore I am sharing this with you.. ❤❤
Bhaiya Navaratri ka bahut bahut subhkamna, Mata Rani aapko aur shakti de taki aap kavi thake nahi, aapka mehanat ham savi ke liye ek prerana jaisi hai Thaks Bahiya
@@slouchysenpai1970 bro yeh problem naah, question practice se solve hogi. First do easy level problem from gfg then medium level then move to leetcode.
i am not able to understand book allocation problem till 2 days and so confused then i serch other creator like apna collage,striver and love bababr videos and they are more complex to understand then i dry run this code by myself and then again watch your video and now i completely understood and this is the best method to solve this problem on youtube
I cannot appreciate less, the content and the hard work youre providing is just unbeatable, thankyou so so so sooooo muvh bhaiyaa flr your efforts, our blessings are with you, keep doing great ✨
Lagta hai, Rohit bhaiiya ka, placement ka record coder army tod dega, Best explanation on UA-cam of book allocation and below all topic Epic explanation ❤❤❤
bhaiya mai apka lecture roj rat me 2 baje dekhta hu kyuki exam chal rahi hai na abhi isiliye or ap vedio ke ant me jo kahte hai na ki agar lecture pasand aya ho to video ko like kar do to mai like kar ke hi jata hu nahi to bhula jata hu achchha hai ki ap hame yad dila dete ho
IT REALLY GOOD EXPLANATION KISKI KO SMAJH N AYA NA AGAR SO DONT WORRY BAAR BAAR REVISE KRO JUST LIKE ME(3RD TIME REVISITING THIS VIDEOOOOO ) AND HO JAEGAA ISKE SAASTH K QUESTION KRO WE GOOOOD
bhai agar tumne ye course kiya he to kya ek baar review de sakte ho. Me love babbar ka dsa course kar raha tha lekin mujhe thoda understanding me problem a rha he.
idk why , maybe im dumb but from 7:00 to 8:30 im having loads of problem trying to understand the method you're trying to explain bhaiya 😢😢 EDIT: AA GAYA AND SOLVE HO GAYA BHAIYAA❤
Aapne pahle question me time complexity NlogN batayi jabki start aur end nikalne ke liye bhi for loop chal raha hai toh time complexity hui n²logn aur ye code jo aap diye h wo time exceed kar raha h gfg me
First Question Concept is very Important, usko samjho achee se dry run karke, wo aagya, fr next 2 problem 2 min mein solve kar doge...
There is one small correction in video, at 19:00 , when we are taking mid of 90 and 116 it should be 103 not 108. But that small mistake will not impact our answer, so keep going
❤❤❤
Mid of 90 and 116 is 103
@@CHAUDHARY_PRAYAS Thanks for pointing out, But it will not have any effect in our final answer.
Bhaiya ek suggession tha
Question ko brute force se start karke optimal Tak lejaiye kabhi kabhi kissi kisi question mein brute bhi nahi aata
@@CHAUDHARY_PRAYAS Bhai first question mein pehle brute force hi samjahya hai, uske baad binary search lagaya hai.. Aage se dhyan rkung ki brute force ka bhi code likhne ka pehle
Even high paid courses will not cover these complex problems in this simple way...... Lucky enough to get this free course
soo true!
1:- Book Allocation (0:00:01)
2:- Painter Partition (0:53:30)
3:- Ship Package (1:08:30)
Lecture complete....ye lecture mera zindagi ka sbse important aur sbse hard rha....pr ab EASY lg tha 💀
Thanku bhiya ❤
Rohit, bhai ki dedication ko dekh ke, maine apne life me kaafi changes laa paa raha hoo😊.
Sach me Hats off you 🙏👏🏼
Bhaiya iss wali video ko friday se aaj tak atleast 7 se 8 bar dekha tab jaake kuch samjh aaya...
00:02 Binary Search Interview Problems
02:21 Discussing the allocation of books with equal number of pages to two children.
06:37 Using binary search to find the maximum number of pages that can be allocated to a child.
08:29 Starting point selection based on maximum value in the array
12:27 Using binary search to find minimum pages required for book distribution.
14:18 Strategies for efficient binary search
18:19 Algorithm for allocation of books based on binary search
20:14 Explaining binary search concept with a practical example.
23:48 Implementing logic for book distribution based on binary search
25:46 Binary search algorithm in book allocation and student distribution.
29:38 Understanding the distribution process for binary search
31:30 Binary search algorithm explained with detailed example
35:11 Explaining the logic behind book distribution
36:56 Efficient distribution of specified values among children.
41:15 Discussing binary search strategy for a problem
43:21 Binary search algorithm for finding the answer within a range
47:17 Binary Search for Book Allocation
49:07 Determining if a valid book assignment is possible
53:02 Discussing the Painter Partition problem
55:09 Allocation of walls and painting time minimization
58:35 Binary search algorithm to find optimal solution within constraints.
1:00:17 Finding optimal time for completion of painting task
1:03:53 Painter Partition Problem solving and implementation details
1:05:48 Debugging errors related to data type overflow in code.
1:09:30 Determining minimum weight capacity of ship for parcel distribution
1:11:19 Understanding the binary search pattern for minimum and maximum problems
Hey Rohit Bhai, you really are a baap teacher. Just keep continuing this project as if its your child.. Mai picche se aa rha hu and trust me, at the end of all this and while this is happening you will be among the very few Gurus that are actually able to teach. Thanks Man, bhai, Sir. We owe you a lot.. Love, Regards and Peace, thanks for being..,🙌✌
Rohit bhai, I am specially writing this feedback to you,
Bhai, day 33 pe aapne jo bhi sikhaya wo lecture maine us din dekha pr mujhe literally kuch bhi nahi samajh aaya aur iss cheez se frustrate hokar maine sat-sunday kuch bhi DSA nahi padha
par aaj maine aapka 'QUIT CODING NOW' wala video dekha aur phirse aapka day-33 wala lecture study kiya and guess what muze poora concept samajh aaya aur maine saare questions bhi khud se kar liye..
I don't know why this happened but I thought I should share this feedback with you therefore I am sharing this with you..
❤❤
Bhaiya Navaratri ka bahut bahut subhkamna, Mata Rani aapko aur shakti de taki aap kavi thake nahi, aapka mehanat ham savi ke liye ek prerana jaisi hai
Thaks Bahiya
Best teacher to learn dsa....
sab chamak gya bhaiya....!
bhai kya aap khud se solve kar parahe ho
@@slouchysenpai1970 bro yeh problem naah, question practice se solve hogi. First do easy level problem from gfg then medium level then move to leetcode.
@@adityarajsinghrathor thanks bhai
00:00 q1 and 43:00 conclusion or summary, 49:00 it's code, 53:30 q2 1:04:54 code of q2 , 1:08:32 q3
i am not able to understand book allocation problem till 2 days and so confused then i serch other creator like apna collage,striver and love bababr videos and they are more complex to understand then i dry run this code by myself and then again watch your video and now i completely understood and this is the best method to solve this problem on youtube
can you pls simplify it
@NoorFatima-bs9vp what..?
After watching so much videos on this topic, I didn't understand this. But from your detailed explanation everything is crystal-clear. Thank you!.
Baap of DSA Rohit bhaiya 😊itna aacha se kon samjhta h bhaiya, just like mom teaches her newborn baby ❤.
in first problem what is M ?
@@shreyasshinde1981 m is the number of students jinke bich books ko distribute karne h
Wow wow wow !!! No one can teach this concept better than you Rohit bhai you are genius ❤🎉
Thank you brother..... boht dino se stuck tha esi question mai... video dekh kr clear ho gya......
Bhaiya you are awesome 💯😎 .......you are the best teacher........sare concept direct mind me 👍🙂❤️.....best explanation ❤
I cannot appreciate less, the content and the hard work youre providing is just unbeatable, thankyou so so so sooooo muvh bhaiyaa flr your efforts, our blessings are with you, keep doing great ✨
Lagta hai, Rohit bhaiiya ka, placement ka record coder army tod dega,
Best explanation on UA-cam of book allocation and below all topic
Epic explanation ❤❤❤
I dont comment on any video this problem was a nightmare for me but your logic was crystal clear thank you.🤩🙏
The most Difficult lecture but you make it easy...
bhaiya mai apka lecture roj rat me 2 baje dekhta hu kyuki exam chal rahi hai na abhi isiliye or ap vedio ke ant me jo kahte hai na ki agar lecture pasand aya ho to video ko like kar do to mai like kar ke hi jata hu nahi to bhula jata hu achchha hai ki ap hame yad dila dete ho
love you bhaiya watching your series in 2k25, really helpful
Hello bhaiya aisa video aise consistency UA-cam mai pehli bar dekh Raha hu 🙏🏻🙏🏻🔥
Thanks bhaiya to make me understand the book allocation problem really u have good teaching skills in dsa
IT REALLY GOOD EXPLANATION KISKI KO SMAJH N AYA NA AGAR SO DONT WORRY BAAR BAAR REVISE KRO JUST LIKE ME(3RD TIME REVISITING THIS VIDEOOOOO ) AND HO JAEGAA ISKE SAASTH K QUESTION KRO WE GOOOOD
Ok bro ❤
38:00 Best part of 1st problem is agar 3 me distribute kar pa rha hu to 4 me bhi ho hi jayega and vise versa is not true....
Best channel for DSA & competative programming geek🤍🤍🤍Thankyou rohit bhai
Thanks bhaiya for providing such kind of amazing content on youtube.
Never seen these kind of lecture love you
It's too hard to understand the first question but atleast i understood everything and going to do the hw thank you bhaiya . Jay shree Ram 🚩
bhai agar tumne ye course kiya he to kya ek baar review de sakte ho. Me love babbar ka dsa course kar raha tha lekin mujhe thoda understanding me problem a rha he.
bhaiya aapne sare question bahut hi aasani se explain kiya h
thank you sir i understand all concept your teaching style is awesome
😘
Thanks bro I wasn't able to understand it from love babbar's video, but now it's clear to me.
Each and every doubts are clear to related these type of binary search problem thanks sir ❤
idk why , maybe im dumb but from 7:00 to 8:30 im having loads of problem trying to understand the method you're trying to explain bhaiya 😢😢
EDIT: AA GAYA AND SOLVE HO GAYA BHAIYAA❤
Bro same situation 😂😂😂 I am still trying to understand
bhaiya apka samjhane ka tarika jo hai na bahut mast hai aur samajh me bhi aa jata hai
day of dsa 25 lecture complete..... thank you bhaiya
amazing lecture bhaiya ...dimaag khul gya ek dum !!! Jai Hind Jai Bharat
bhaiya book allocation itne acche se samjh m aya ki bki 2 problem khud kr liya
Good morning techies
Mess se aa gya ab start krta hu
Ram ram Rohit bhaiya🙏
Chamka diye bhaiya
Maja aa gya
Book allocation Mai to
bhai next level explanation ab is type ke question kaise bhi kar sakte h aisa lg rha h in sbko solve karke
Aapne pahle question me time complexity NlogN batayi jabki start aur end nikalne ke liye bhi for loop chal raha hai toh time complexity hui n²logn aur ye code jo aap diye h wo time exceed kar raha h gfg me
bhaiya, literally faced around 5 same pattern question on leetcode , in medium and hard section, after this video I was able to solve all of them
You're literally an Inspiration for us 👑✍🏻
BHai agr ye series 3rd year me mil jaati to mujhe dsa me bahut help milti
Day 33 Successfully Completed 1:13:13 💪
thank you @rohitnegi bhaiya to make a easier concept to a tough concept and also for a great explanation.
book allocation problem always goes above my head. but this time you made me understand and thanks for that sir ❤❤❤❤❤❤❤❤
Thanks you so much bhaiya. You make every problem easily understandable.
He is god father of DSA ❤
Time and space complexitymathematical proof .Pls bhaiya on this weekend .
Literally mind blowing teaching...
thanks for your effort yo ur teaching skills realize me that even I can do so much in codiing which was fear to me earlier 🙂
Nice explanation bhaiya....saree question smjh aagye
33/180 done thanku so much bhaiya hme itna acha padhane ka liye🥺🙃
it was really nicely explained, now I am able to see the pattern in binary search
lecture+hw done (all except koko solving bananas)
amazing lecture learnt a lot out of this!!!
❤❤
kaffi help ho rha aapke vedio se sikha hu but kuch or avi continue kr rha hu aapka lecture
48:00 while loop and for loop ki time complexity kese pta chla ?
48:00
Bhaiya video to late aai par 33 days completed.Ab 2 din revision karna hai, milte hai Monday ko. Thank you Bhaiya ❤❤❤❤
love you bhaiya
ye batao kya video dekh ke sekhna sahi hota hai kya kyui jab mene problem dekhi to mujhe amjh nhi aa rah tha par video dek kar sekhna sahi hai kya
its amazing session and
very helpful
world class consistency .... All time love my negi bhai❤❤
bhhout bhhout shukriya mere bhai
HW Solution 4: Koko Eating bananas ✅✅
int minEatingSpeed(vector& piles, int h) {
int start = 1, end = 0, mid, ans, n = piles.size();
for(int i=0; i
Bhaiya dimag ghum gaya😂😂
😂😂 same bro
Explaination are very good and simple.
Bhaiya ship package vala code ek baar aap implement krke dikha do plz bhaiya maine bhot krne ki try kra but nhi ho pa reha plz bhaiya
(90+116)/2 = 108 ? ... aadhe ghante pareshan raha m .
and thank you so much great explanation...
Good effort by you, Bhaiya!!!
Thank you bhaiya for this beautiful lecture
Thanks, I learnt it very easy way.
Tq bhaiya, i am happy to understand the concept
best video on BS on answers
Best explanation method ❤❤
Day 33 Successfully Completed ✅✅& Consistency++
love you sir😘
book allocation samjhne main thora waqt laga lekin bad ki dono problems easy lagin.
chamka++;
bariya tha sir
bhaiya kaafi achhe se samajh aa gya ❤
time stamp 49:00
Subha sasthi Sir ❤❤
Very interesting concept covered today, Appreciate a lot.
🙏☝☝
Superb explanation.
Great Explainer...👌
The link you gave on the WhatsApp group for resume workshop is not working. That's why I can't fill out the form. Please resend it or make it ok.
Day-33 Completed🔥
#180daysofcode
covering backlogs
excellent teaching
Bhaiya payment karne karne par garphy Pvt limited aa raha hai
maja aya bhaiya mind me fixed ho gaya
bro leetcode meh try kiya but error aaraha hyy
great explanation bhaiya❤
Chamak gya sir jii ❤
Bhaiya Koko eating bananas ye problem ko chod ke sare problem ban Gaye kal please Koko eating bananas wala Thora samjha dijia ga...
Best explaination
Brother, can we prepare dsa for gate cse from this course?