No video

BS 19. Painter's Partition and Split Array - Largest Sum

  Рет қаралды 87,811

take U forward

take U forward

Күн бұрын

Painter's partition: bit.ly/3XM8oFS
Split Array - Largest Sum: bit.ly/3Ck7UwL
Notes/C++/Java/Python codes:
We have solved the problem, and we have gone from brute force and ended with the most optimal solution. Every approach's code has been written in the video itself. Also, we have covered the algorithm with intuition.
Full Course: bit.ly/tufA2ZYt
You can follow me across social media, all my handles are below:
Linkedin/Instagram/Telegram: linktr.ee/takeUforward
0:00 Introduction of Course

Пікірлер: 113
@alessandrocamilleri1239
@alessandrocamilleri1239 Жыл бұрын
You''ll realize what a good teacher this guy is when you come to that point when you solve the problem before watching the video. Thank you.
@rushidesai2836
@rushidesai2836 2 ай бұрын
Exactly in the middle of the video I realized it can be solved using Books Allocation logic.
@atomichub5049
@atomichub5049 Жыл бұрын
Who is here who is in 4th year and starting DSA now
@darknessmatters23
@darknessmatters23 7 ай бұрын
Konse college se h bhai?
@atomichub5049
@atomichub5049 7 ай бұрын
NIT Kurukshetra @@darknessmatters23
@lakshaybansal2470
@lakshaybansal2470 Ай бұрын
Me
@atomichub5049
@atomichub5049 8 күн бұрын
@@VaishnavI-me8bz no still struggling and now I understand DSA is rubbish and overhipped. for 6-15 lpa no dsa required
@atomichub5049
@atomichub5049 7 күн бұрын
@@VaishnavI-me8bz what are you thinking is I am fool . MS , Google stop faking first .
@epsa9324
@epsa9324 Жыл бұрын
I have gotten so addicted to watching these videos at 2× that when I listen to the original "inspiration" song it seems to be so slow. Inspiration at 2x ( the one at the end of each of striver's video) is much better lol😂
@devkirandass7930
@devkirandass7930 Жыл бұрын
WE ALL LOVE YOU and your ** DSA SHEET **......You are the one who has taught me and many others the amount of DSA we know......Thank you for that
@Isagi__000
@Isagi__000 4 ай бұрын
solved on own, thanks man, because of your structured playlist, we are able to solve on our own. keep doing the great work.
@harshal1611
@harshal1611 11 ай бұрын
Thanks striver I was able to solve question without seeing your video as these approaches you had told earlier.I am again seeing this video as to check whether any diiferent approach is present or not.Please continue this series
@Josuke217
@Josuke217 3 күн бұрын
I solved this problem on my own wtf After watching all videos so far, I have finally developed the intuition !! Thanks Striver !!
@The-coding-cracker28
@The-coding-cracker28 5 ай бұрын
Sir, you are the best teacher I have ever seen, and you explain the logic for solving the question very well.
@cinime
@cinime Жыл бұрын
Understood! Super fantastic explanation as always, thank you so so much for your effort!!
@Shunya_Advait
@Shunya_Advait 11 ай бұрын
Understood Sir, thanks a lot I have solved both the problem on my own and now I am feeling good because of it.
@adityarajvermaa
@adityarajvermaa 11 ай бұрын
for the second question i passed all the test cases except for one by myself. And that understanding is developed after continuous practice...thanks striver bro
@vishakbhat3032
@vishakbhat3032 Жыл бұрын
These videos are helping a lot striver !! Thank you for this !!
@lakshayyadav9850
@lakshayyadav9850 11 ай бұрын
Did it all by myself !!! Thanks Striver you r the best!!!
@tanisharawat2469
@tanisharawat2469 Жыл бұрын
Please complete this series .. Increase the frequency of videos per day
@abhishekanand2163
@abhishekanand2163 Жыл бұрын
Bro he has a job as well
@praffulbisht8520
@praffulbisht8520 5 ай бұрын
Thanks striver this is the first time I was able to solve this problem before watching the video
@rohanraj7476
@rohanraj7476 Жыл бұрын
First time i visualise how should one can learn or understand the pattern of the problem thankyou ❤
@user-sv2gd2mn2d
@user-sv2gd2mn2d Жыл бұрын
Hello Striver, please do upload the videos asap cause to keep up the continuity. I love your explanation its the best. That is why I want your videos and not other's.
@SwagatamBag-ce8ye
@SwagatamBag-ce8ye Жыл бұрын
Banda cp karta tha isiliye uska explanation baki log se alag hai and clear cut hai
@user-il4qt6rf6o
@user-il4qt6rf6o 11 ай бұрын
So far the best explanation
@MJBZG
@MJBZG 27 күн бұрын
solved the question without watching the video, but still watching to get the learning deep seated in my mind
@adityarajvermaa
@adityarajvermaa 11 ай бұрын
bro again i coded the painters problem by myself....kudos
@mohd.maasir8198
@mohd.maasir8198 29 күн бұрын
Amazing Explanation sir!
@askshivansh
@askshivansh 10 ай бұрын
❤ He is born for a reason, for a revolution. Thanks Bhai ❤❤❤
@divyadwivedi1527
@divyadwivedi1527 Жыл бұрын
Plz complete this BS series as soon as possible , very less time in left placement
@joeljacob4685
@joeljacob4685 9 ай бұрын
Understood !! was able to solve the question on my own!!😄
@user-ti3bd8mp1w
@user-ti3bd8mp1w Жыл бұрын
understoood oh waao this was wonderful...
@mohitjain5783
@mohitjain5783 Жыл бұрын
nice video please don't stop uploading video
@harshpunjabi8995
@harshpunjabi8995 Жыл бұрын
PLEASE ADD GFG LINKS BACK TO A TO Z DSA SHEET
@as.if_0077
@as.if_0077 Жыл бұрын
yes we use them to revise the stuff we've solved.Cause some questions aren't on leetcode so we have to go through them .@takeUforward @Striver
@reppee4392
@reppee4392 2 ай бұрын
there's a chrome extension for that you can use it
@Marvelous_maverick
@Marvelous_maverick 19 күн бұрын
similar to leetcode #1101 problem but still thank you so much for the time to explain the problem.
@aman_singh__
@aman_singh__ Жыл бұрын
a2z sheet me CN ki jagah gfg ke links wapas daal do sir please 🙏
@AayushDubey_007
@AayushDubey_007 Ай бұрын
Great Work
@hasanuzzamananuz8270
@hasanuzzamananuz8270 Жыл бұрын
Thank you, sir.
@NazeerBashaShaik
@NazeerBashaShaik 3 ай бұрын
Understood, thank you.
@sdsingh3577
@sdsingh3577 Жыл бұрын
Bhaiya plz upload more and more videos as soon as possible.......plz bhaiya request you bhaiya.....
@arpitkumarmishra2734
@arpitkumarmishra2734 Жыл бұрын
bhaiya please finish this series as soon as possible
@boredbrain-fd8bk
@boredbrain-fd8bk Жыл бұрын
Do you have any idea when will this series get completed?
@SigmaShy-bx6pr
@SigmaShy-bx6pr Жыл бұрын
Sir please add gfg link in your sheet
@mohitjain5783
@mohitjain5783 Жыл бұрын
understood sir, when will you start linked list data structure
@ambaradhikari7425
@ambaradhikari7425 Жыл бұрын
Bhai, thanks for the lecture , please increase the frequency of videos per day, we are waiting for stck, linked list, stack , queue, bit manipulation, . Atleast upload 11-15 videos per week if not 20. this course is going on for sooooo long. also put gfg link instead of CN
@harshilpatel3205
@harshilpatel3205 5 ай бұрын
Thank you 😇
@user-is6ky7pp2n
@user-is6ky7pp2n Ай бұрын
Understood !! 😎😎
@crazybro4383
@crazybro4383 3 ай бұрын
Yeh ques mien sochna ni pada seedha code likha maine (submitted this ques within 5 min) just becoz aapne peeche similar ques bahut hi zada ache se explain kr rkhe the, This guy means it when he says No youtube playlist or paid course is better then a2z dsa course
@crazybro4383
@crazybro4383 3 ай бұрын
KZbin video bss comment krne ke liye kholi thi aur bss, really thankful for this course bhaiya.
@priyanshushukla1295
@priyanshushukla1295 Жыл бұрын
sir will be there any playlilst for strings??
@her_soulmate
@her_soulmate 6 ай бұрын
Understood 🎉
@culeforever5408
@culeforever5408 9 ай бұрын
understood 😇
@kesaridevaraya4618
@kesaridevaraya4618 Жыл бұрын
in the painter brute force solition why is the conditon
@tempregex8520
@tempregex8520 10 ай бұрын
Is there an edge case in the cbook allocation problem where in the students counter go beyond students required? and also can the pagesStudent go beyond the pages?
@per.seus._
@per.seus._ 10 ай бұрын
understood❤
@user-tj7ro8ne5e
@user-tj7ro8ne5e 7 ай бұрын
thanks
@Freefire-hp4zz
@Freefire-hp4zz Жыл бұрын
Bhai Please Start The Strings as soon as possible I will watch only your videos it is the best so please make videos as soon as possible PLACEMENT IS NEARING
@prathameshjadhav2942
@prathameshjadhav2942 5 ай бұрын
Understood it
@anshulgoel1940
@anshulgoel1940 10 ай бұрын
If the constraint of consecutive jobs is removed, does it become a DP problem ?
@AmannLive
@AmannLive Жыл бұрын
Hey striver there’s a request if you can increase the pace of uploading videos it would be much better .
@dewanandkumar8589
@dewanandkumar8589 6 ай бұрын
Understood
@rohit1770
@rohit1770 Жыл бұрын
What if interviewer ask why you don't think of recursion and dp?
@gadgetsandhacks7161
@gadgetsandhacks7161 Ай бұрын
i have a query if the question would have asked for the subsequence then we have to use DP ?
@sairamyakamalibandla7667
@sairamyakamalibandla7667 Жыл бұрын
problem: You have a list of numbers that are sorted in increasing order. You also have two numbers, K and X. Your task is to find the K numbers in the list that are closest to X. If two numbers are equally close to X, you should choose the smaller one. For example, if the list A is [2, 6, 7, 10] and K is 2 and X is 8, then the closest numbers to 8 are 7 and 6. Hi. Could you create a binary search video for this "K closest element problem".😶 ps: I have been following your binary search playlist and I am happy that I found exact pattern of updating low, mid and high for all the problems. But in the above problem is there a way to follow the same binary search pattern? I have seen many videos on youtube but everywhere they are updating high = mid and while condition is also different. It is like while(low
@sanjayshreeram8352
@sanjayshreeram8352 8 ай бұрын
perform normal binary search on that number and at some point low >high . i.e low will point to next element and finally peform check if(arr[low]>arr[high] return high else return low ;
@user-sl3fj5tb4p
@user-sl3fj5tb4p 6 ай бұрын
is there a method to solve it without binary search like using recursion
@shubham_v
@shubham_v Жыл бұрын
Agar har 15 days me sirf 1 video aayi to engineering complete hogi par course complete nahi hoga 😕
@user-om1zx4ox4h
@user-om1zx4ox4h 11 ай бұрын
cout
@firebout7675
@firebout7675 7 ай бұрын
understood
@shrydeep12
@shrydeep12 Жыл бұрын
Your submission failed for the following input A : 1 C : [ 10 ] Somehow it is getting failed for this value, can anyone help?
@SAYANDAS-sf6hr
@SAYANDAS-sf6hr Жыл бұрын
Dada will AI replace software engineers in future ?? Please reply Karo ❤
@smoothgaming7822
@smoothgaming7822 8 ай бұрын
actually i solved painters partition earlier but seeing another problem i got confused that how to solved, then i jump to video solution and in the first 30 sec of video striver bhaiiya give hint that the problem is smililar so i solved problem using painters partition approach but my queastion is , how to recognize the pattern ?
@pihus3498
@pihus3498 Жыл бұрын
understood :)
@mahanteshambali
@mahanteshambali Жыл бұрын
Guess who's back. Back again.
@girikgarg8
@girikgarg8 10 ай бұрын
Done
@Lucifer0872
@Lucifer0872 Жыл бұрын
❤❤❤❤❤
@OOO-CM-Koushiktirupathi
@OOO-CM-Koushiktirupathi 7 ай бұрын
can this problem can be sloved by sliding window i mean for this test case the answer should be 10 4 5 10 9 10 k=4 ans =28? if not y?
@akshayyadav428
@akshayyadav428 Жыл бұрын
one day one video please
@hiteshr8514
@hiteshr8514 6 ай бұрын
please explain the testcase [2,3,1,1,1,1,1] with k=5 your code returns 4 possibleSubArray and its accepted , shouldnt it be 5 subArrays
@rikbasu6016
@rikbasu6016 4 ай бұрын
I have got the same doubt it's the only test case in leetcode that is not passing if u use a answer variable for storing the mid instead of using the low pointer , but if you use low pointer to return the answer it is passing the test case , I think because the partition that is expected is {2} {3} {1,1} {1,1} {1} but according to strivers algo the partition is {2},{3},{1,1,1},{1} that is actually 4 and hence it is giving error
@thoughtsofkrishna8963
@thoughtsofkrishna8963 12 күн бұрын
Can anyone explain why we took range like that??
@sunrise_vlogs_daily
@sunrise_vlogs_daily 11 ай бұрын
Happy teacher's day🎉❤😊 @raj
@vaibhav2517
@vaibhav2517 Жыл бұрын
please add GFG LINKS 😣😣😣😣😣😣😣😣😣🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
@pranavtavva984
@pranavtavva984 9 ай бұрын
❤❤
@vishalkumarsingh7256
@vishalkumarsingh7256 Ай бұрын
👍
@allyouneed_2
@allyouneed_2 Жыл бұрын
What a guys should choose Metallurgy branch in jadavpur university or csc in jalpaiguri govt engineering college ?? Please help .....
@saswatamukherjee7144
@saswatamukherjee7144 9 ай бұрын
None. Take Construction Engineering in LPU.
@vanshajbhardwaj1814
@vanshajbhardwaj1814 Жыл бұрын
I do not know dsa at all. I just started a to z dsa course but here all the videos are not uploaded yet so what should I do?
@takeUforward
@takeUforward Жыл бұрын
Follow the sheet, it has many, the ones you don't find do a yt search, someone will definitely have one video on it
@vanshajbhardwaj1814
@vanshajbhardwaj1814 Жыл бұрын
@@takeUforward thankyou
@divyadwivedi1527
@divyadwivedi1527 Жыл бұрын
@@takeUforward Plz complete the BS series as soon so possible , the placements are coming
@as.if_0077
@as.if_0077 Жыл бұрын
@@takeUforward please add back gfg links in another section.We use those links to revise the codes which i have already submitted coz some questions aren't on leetcode.
@raghavkansal3765
@raghavkansal3765 Жыл бұрын
"understood"
@Satyendra_Prakash17
@Satyendra_Prakash17 Ай бұрын
solved it in one go before watching the video !! than you striver
@tanisharawat2469
@tanisharawat2469 Жыл бұрын
Sir please.... upload the videos fast...
@MadForCs16
@MadForCs16 5 ай бұрын
bhai mai toh solution dekhne aaya tha ...vo toh explain karta.
@user-fx8ui1ev8s
@user-fx8ui1ev8s Ай бұрын
giving wrong ans
@kajal8173
@kajal8173 Жыл бұрын
Thankyou for this course.Indeed the best explanation, Please start strings as in no KZbin channel strings explanation is upto mark🤍
@abhishekprasad010
@abhishekprasad010 3 ай бұрын
Understood
@hardikpatel352
@hardikpatel352 2 ай бұрын
understood
@dayashankarlakhotia4943
@dayashankarlakhotia4943 Жыл бұрын
Understood
@aryankumar3018
@aryankumar3018 4 күн бұрын
Understood
@PrathuJoshi
@PrathuJoshi Жыл бұрын
Understood
@anand_yv
@anand_yv 10 ай бұрын
Understood
@manojnavinjamuri5867
@manojnavinjamuri5867 Жыл бұрын
Understood
@shaiksoofi3741
@shaiksoofi3741 2 ай бұрын
understood
@shashankvashishtha4454
@shashankvashishtha4454 Ай бұрын
understood
@ashishpradhan6250
@ashishpradhan6250 Ай бұрын
understood
@priyeshtandel2101
@priyeshtandel2101 Жыл бұрын
understood
@arihantjammar8888
@arihantjammar8888 11 ай бұрын
understood
BS-18. Allocate Books or Book Allocation | Hard Binary Search
27:29
take U forward
Рет қаралды 140 М.
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
Mama vs Son vs Daddy 😭🤣
00:13
DADDYSON SHOW
Рет қаралды 43 МЛН
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 9 МЛН
BS-17. Aggressive Cows | Binary Search Hard
26:44
take U forward
Рет қаралды 133 М.
Leetcode 46. Permutations : Introduction to backtracking
10:06
ComputerBread
Рет қаралды 90 М.
I Solved 1583 Leetcode Questions  Here's What I Learned
20:37
ThePrimeTime
Рет қаралды 592 М.
Nature's Incredible ROTATING MOTOR (It’s Electric!) - Smarter Every Day 300
29:37
Understanding B-Trees: The Data Structure Behind Modern Databases
12:39
Split Array Largest Sum - Leetcode 410 - Python
16:51
NeetCode
Рет қаралды 77 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 285 М.
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН