BS-4. Search Element in Rotated Sorted Array - I

  Рет қаралды 307,247

take U forward

take U forward

Күн бұрын

Пікірлер: 476
@takeUforward
@takeUforward Жыл бұрын
Please comment understood and give us a like if you got everything :)
@redstormthecoder5818
@redstormthecoder5818 Жыл бұрын
Understood sir! This really cleared my doubt regarding the process the code performed in else part! Thank you sir!!
@motivationalquotes8545
@motivationalquotes8545 Жыл бұрын
Very well Understood sir 😀
@sudhanshushekhar4222
@sudhanshushekhar4222 Жыл бұрын
Understood
@utsavseth6573
@utsavseth6573 Жыл бұрын
Now I clearly know how you got a job at Google.😁
@venup2813
@venup2813 Жыл бұрын
Understood
@chaudharyalisha7175
@chaudharyalisha7175 Жыл бұрын
No wonder how demotivated I was when I saw that question and was looking for a good explanation since last 7 days (no, not even exaggerating). But, this man is love!!! Keep going @Striver :) You're our hope!!
@yash-seth
@yash-seth Жыл бұрын
God tier explanation. I truly can't put in words how easily and clearly you were able to explain a seemingly confusing question!
@hilal937
@hilal937 Жыл бұрын
I was struggling with Binary search on sorted array for a long time, Your key point "Eliminate one half" has cleared my confusion. Thank you so much Striver
@abhisheksinghmehra9576
@abhisheksinghmehra9576 Жыл бұрын
We never move backward bcoz we have Take You Forward😇
@satendra6200
@satendra6200 Жыл бұрын
That's a good one 😁
@surendharv795
@surendharv795 8 ай бұрын
little cringe brother.
@calisthenics5247
@calisthenics5247 4 ай бұрын
@@surendharv795 ok so called mature sigma boy
@reyanshmishra7676
@reyanshmishra7676 Жыл бұрын
The best explanation I have found for this problem. Alog is very simple now 1. Identity the sorted half. 2. Check if the target lies in the sorted half. Thats it you need to do this two things only.
@alwinsanthosh6878
@alwinsanthosh6878 3 ай бұрын
Ig after solving like 15 BS problems, that's somewhat how all BS qs probably are. Divide search space into two halves Use some condition to eliminate either of the half from the search space
@monstercoder3665
@monstercoder3665 Жыл бұрын
None can compete with this man....!!! Simply amazing 👏. Great Work Striver Bhaiyya #DSA ka baap. The best thing about you is that you are not paid and spreading knowledge to all the aspirants...
@iamnoob7593
@iamnoob7593 Жыл бұрын
I think people should pay for this next level quality content.
@shubhamkumar-hx1fb
@shubhamkumar-hx1fb Жыл бұрын
@@iamnoob7593 haa...if u wish to.. then plss donate that money to some nearby ngos.
@mehulthuletiya497
@mehulthuletiya497 Жыл бұрын
00:24 Problem statement 01:06 Example 01:43 Solution-01 (Linear Search) 02:21 Solution-02 (Binary Search) 05:00 Dry-run 11:42 Pseudocode 15:17 Code 15:28 Complexity
@epsaepsit4645
@epsaepsit4645 Жыл бұрын
09:56 reaction lol
@annusharma4764
@annusharma4764 Жыл бұрын
Correct
@xyzxyz9249
@xyzxyz9249 Жыл бұрын
nalla bc
@senseiAree
@senseiAree Жыл бұрын
​@@epsaepsit4645hahahahaha
@beingproductive22
@beingproductive22 11 ай бұрын
here after love babar lec - 14 for rotated sorted array he is using the concept of pivot element which is little messy but striver what a lovely lovely explanation in 1 go i understood and coded it myself
@Josuke217
@Josuke217 5 ай бұрын
I learned recursion stack and queues from him , he's not a good teacher .
@sarveshkulkarni6287
@sarveshkulkarni6287 4 ай бұрын
Yep that's not intuitive as this the striver's approach is
@junaidahmed3615
@junaidahmed3615 Жыл бұрын
what an absolutely great explanation. i watched another video before this and it was so convoluted for no reason. yours is so simple and easy to grasp
@sergion_brayen
@sergion_brayen 9 ай бұрын
honestly I was very confused and demotivated after watching Rohit negi sir's explanation in paid course , i spent 2 hour to understand this problem but could not get it , after watching strivers explanation i get it only after single iteration. thanks a lot . now i am going to follow strivers AtoZ DSA
@lofireverbz-wy7go
@lofireverbz-wy7go Жыл бұрын
09:56 seriously i watched this many times to see your expression 😄
@yoongicorn7973
@yoongicorn7973 Жыл бұрын
Yeah and The little smile when he continued... so cute ❤
@lofireverbz-wy7go
@lofireverbz-wy7go Жыл бұрын
that,s nice on which lecture you are currently @@yoongicorn7973
@shivanipatwa4709
@shivanipatwa4709 3 ай бұрын
yk striver is a cutie....😉😉
@Akshitrawat121
@Akshitrawat121 3 ай бұрын
Mujhe mera mele m khoya hua bhai mil gya because our thoughts are same 🤣
@anishaa3298
@anishaa3298 Ай бұрын
got a little distracted. hehe
@knownforunknowns
@knownforunknowns Ай бұрын
The one who are selling just their courses and making abundant money are getting more and more fame and heavily recognised today, but the person who truly creating impact is just not even known by everyone today, But anyway thank u so much striver bhaiya , for this great quality content , i wish you will be respected by every cs student of india one day !!
@ML-ok9nf
@ML-ok9nf Жыл бұрын
One of the best explanations for this problem on the internet!
@venkatsaireddy1412
@venkatsaireddy1412 10 ай бұрын
Thank You Raj Vikramaditya. I am a scaler student , i fond of Your teaching skills more than scaler instructors.
@unknown2003august
@unknown2003august 6 ай бұрын
Notes for me☺ As we get our mid at any index checks arr[num]==target if it satisfies return here. After that Case 1> Array is left sorted(we check it by standing on mid), ==>Checks where our target lies in sorted(between low to mid ) or outside it by using if(arr[low]=target) if it lies inside this it indicates we need to collapse window by taking high to mid -1 otherwise low to mid+1 Case 2> Array is right sorted similarly we check for it and updates our low and high accordingly if we never get it we return -1 to it
@pratikkumarsingh8114
@pratikkumarsingh8114 Жыл бұрын
Understood bhaiya , thw way of teching is another level, I don't have words to express my feelings. Thanks a lot, bhaiya!!!
@VasanthChoudary-uc5cz
@VasanthChoudary-uc5cz Жыл бұрын
Thankyou for providing this course for free bro.
@junaiid0104
@junaiid0104 5 ай бұрын
crazy concept striver ! I'm just loving your binary search playlist!!!
@rrt19254
@rrt19254 3 ай бұрын
Understood! This man is a legend...
@sreevarshinirg4319
@sreevarshinirg4319 5 ай бұрын
Understood, Tq for this great help by teaching in youtube for free
@adarshmv261
@adarshmv261 8 ай бұрын
Understood. The best explanation on youtube for this problem..
@sujalgupta6100
@sujalgupta6100 8 ай бұрын
Finally understood this problem. Every time I saw rotated sorted array or binary search in general I always skipped.
@seeingsee6593
@seeingsee6593 2 ай бұрын
you are the best teacher I finally understood this problem thank you so much
@PeterParker-ee6ep
@PeterParker-ee6ep Жыл бұрын
everyone just try dry run after you complete video after your understanding, it really in understanding still better. try ittt
@cinime
@cinime Жыл бұрын
Understood! Super fantastic explanation as always, thank you so so much for your effort!!
@kaushiksen2190
@kaushiksen2190 Жыл бұрын
Amazing video, very good explanations, took sometime to understand but went through it again and again to understand it completely. Thanks for making such quality content Striver Bhai
@Fe-ironman
@Fe-ironman 2 ай бұрын
what i did was i found the starting point using similar approach of binary search then applied binary search from that point...but this approach is goated
@mriit3025
@mriit3025 7 ай бұрын
best possible understanding through the BS playlist!
@ishangujarathi10
@ishangujarathi10 Жыл бұрын
mann unbelievable intuition and explanation!! loved it !!! understood completely
@NeerajKar-i7r
@NeerajKar-i7r Жыл бұрын
Great Raj bhai... you deserve to be in elite class. keep rocking
@hrishii.02
@hrishii.02 6 ай бұрын
Understood! What a simple and affective explaination
@prernagupta7450
@prernagupta7450 10 ай бұрын
YOU Can understand very well and i see a many video but my concept is not clear but just i see that video which would be clearly the concept very easily
@anddevsahil
@anddevsahil 9 ай бұрын
Can't find better explanation than striver .
@revanthkumar5417
@revanthkumar5417 Жыл бұрын
Best explanation so far in binary search
@abhimanyuambastha2595
@abhimanyuambastha2595 10 ай бұрын
Looked at neetcode video, then yours. His explanation was a bit confusing and had to do some examples to understand it. Yours almost made it a regular easy binary search
@kumpatisupriya3947
@kumpatisupriya3947 Жыл бұрын
What an explanation bro.. You are our lives savior 🙏🙏
@prathamrawat6298
@prathamrawat6298 5 ай бұрын
bhaiya bhot bhot bhot hi aacha genuinely , bhot pyara samjhaya, too good!
@Raj_singhh
@Raj_singhh 5 ай бұрын
quality GOD LEVEL 🔥 🔥
@HarshSingh-hk8fe
@HarshSingh-hk8fe 11 ай бұрын
bro the way you explain is just amazing thanks a lot
@swathigp3818
@swathigp3818 9 ай бұрын
This great quality content for free !!! Amazing work , please keep making these great videos 👏👏👏👏
@nagame859
@nagame859 Жыл бұрын
Understood as always! The intuition/approach is just awesome🤩. Spellbound!
@UserUser-tn8tv
@UserUser-tn8tv 11 ай бұрын
Understood Please keep consistent and eventually complete the series of A to Z DSA Course.... Thank You
@somu7441
@somu7441 3 ай бұрын
Only because of you I am loving DSA
@radha7492
@radha7492 Жыл бұрын
thank you so much sir...respect for your amazing efforts...really no one teaches better than you... raj cum striver..i wish for your long life and happiness..
@umangkumar2005
@umangkumar2005 10 ай бұрын
This is the best explanation
@srutisingh4629
@srutisingh4629 Жыл бұрын
Hats off to you❤
@hareshnayak7302
@hareshnayak7302 9 ай бұрын
Understood,Thanks stiver for this amazing video.
@fastlaner7746
@fastlaner7746 4 ай бұрын
"Identify the sorted half" thank you
@myproject6768
@myproject6768 Жыл бұрын
Absolutely understand ❤
@venkatesasrikanthdhulipala9486
@venkatesasrikanthdhulipala9486 Жыл бұрын
one small correction in the code it will fail if the array is [3,1] and target = 1 because of code in line no 9 i.e k
@sarveshkulkarni6287
@sarveshkulkarni6287 4 ай бұрын
No wrong, let me proove , low = 0 , high = 1 , mid = 0 , Now check if arr[low]
@sandeeprajsaimon8600
@sandeeprajsaimon8600 5 ай бұрын
best explanation ever
@k.satish3663
@k.satish3663 Жыл бұрын
Totally understood.your teaching is superb.thank you
@Akshitrawat121
@Akshitrawat121 3 ай бұрын
9:58 what a expression ;) mtlb mza sa aagya😆
@sanchisingh5117
@sanchisingh5117 Жыл бұрын
striver's explanations are the best
@vinitverma1741
@vinitverma1741 Жыл бұрын
Thank u for such a great explaination
@rtheame4704
@rtheame4704 7 ай бұрын
Very well explained 👏🏻👏🏻
@rajkumarvb5197
@rajkumarvb5197 Жыл бұрын
Understood, thanks for your efforts!
@akaashk623
@akaashk623 Жыл бұрын
Greatly explained 👏👏
@rakshitraushan1650
@rakshitraushan1650 9 ай бұрын
Understood bro!! Ur a gem!
@yashraorane578
@yashraorane578 5 ай бұрын
Best explanation💯
@AtulKumar-c4x7l
@AtulKumar-c4x7l Жыл бұрын
understood Thank you striver for making things easy...
@ADITYASRIVASTAVABCE
@ADITYASRIVASTAVABCE Жыл бұрын
Thankyou for clear explanation. Loved it.
@yashraj5898
@yashraj5898 Ай бұрын
great explanation buddy !
@AshishSharma-kg1yy
@AshishSharma-kg1yy 5 ай бұрын
woww what a great explanation
@ayushichoudhary1019
@ayushichoudhary1019 Жыл бұрын
Best Explanation!
@swagatmishra7673
@swagatmishra7673 11 күн бұрын
understood!!!! brilliant
@Abhishekkumarnjw22-vf7cr
@Abhishekkumarnjw22-vf7cr 5 ай бұрын
Great help you are doing
@mukeshnayal624
@mukeshnayal624 Жыл бұрын
dill se thank you!
@ujjawalchourasiya3988
@ujjawalchourasiya3988 9 ай бұрын
Love you bhaiya . You are my inspiration ❤
@saketjaiswalSJ
@saketjaiswalSJ Жыл бұрын
9:57 sir is so much excited
@SameerSuman-ni6fz
@SameerSuman-ni6fz 3 ай бұрын
Elimination is key - GOLDEN WORDS
@Ginger_Hrn
@Ginger_Hrn 8 ай бұрын
watching this on 0.75x playback speed feels like I'm watching a drunk person explaining me how to solve this problem.
@harshilpatel3205
@harshilpatel3205 10 ай бұрын
Amazing explanation sir 😇!
@manishdhekane5393
@manishdhekane5393 Жыл бұрын
Understood very well !
@jaydevkundu554
@jaydevkundu554 Жыл бұрын
UNDERSTOOD Striver Op🔥🔥
@AkhileshChouhan-d4v
@AkhileshChouhan-d4v 6 ай бұрын
Great explanation.
@neerajpruthi8350
@neerajpruthi8350 10 ай бұрын
Love the explanation. THanks
@nikhilkumarjamwal5322
@nikhilkumarjamwal5322 Жыл бұрын
Nice Explanation!👍
@mathialagant
@mathialagant 10 ай бұрын
9:56 Perfect reaction 😂
@Dibyadipan
@Dibyadipan 4 ай бұрын
Understood! watching your lectures and taking dsa notes, during college classes 😂❤ (17/8/24)
@rashmirsd
@rashmirsd Жыл бұрын
Very nice explanation. Thank you
@BalajiG-ms3vu
@BalajiG-ms3vu 8 ай бұрын
Understood bro,thank you so much.
@apmotivationakashparmar722
@apmotivationakashparmar722 10 ай бұрын
Great Explaination
@VikasBagri-i5j
@VikasBagri-i5j Жыл бұрын
Understood it very well :)
@tree7500
@tree7500 Жыл бұрын
yes understood will try it out
@NazeerBashaShaik
@NazeerBashaShaik 8 ай бұрын
Understood, thank you.
@surajwaghmare4653
@surajwaghmare4653 Жыл бұрын
Thank You
@artofwrick
@artofwrick Жыл бұрын
Great, master ji.
@sopparipraveen1212
@sopparipraveen1212 Жыл бұрын
Great explanation
@habeeblaimusa4466
@habeeblaimusa4466 Жыл бұрын
Understood bro 😁😊
@SagarKumar-li4um
@SagarKumar-li4um 3 ай бұрын
understood sir
@Musicuvakavi1823
@Musicuvakavi1823 8 ай бұрын
Understood well thanks for this valuable video sir
@UjvalGupta-l1e
@UjvalGupta-l1e Жыл бұрын
Understood sir ❤
@HarshSingh-nq4oe
@HarshSingh-nq4oe 5 ай бұрын
Understood Thank you.
@manavsingh5919
@manavsingh5919 Жыл бұрын
Thank You Striver....Understood it
@VipulBansal-e7n
@VipulBansal-e7n 4 ай бұрын
Understood understood
@tanishkthakur9965
@tanishkthakur9965 7 ай бұрын
understood
@ShivaMahajan07
@ShivaMahajan07 11 ай бұрын
God ho kya aap 😀
@bujagawnisaitejagoud2461
@bujagawnisaitejagoud2461 7 ай бұрын
Very good explanation
BS-5. Search Element in Rotated Sorted Array II
12:44
take U forward
Рет қаралды 200 М.
BS-6. Minimum in Rotated Sorted Array
17:08
take U forward
Рет қаралды 202 М.
ВЛОГ ДИАНА В ТУРЦИИ
1:31:22
Lady Diana VLOG
Рет қаралды 1,2 МЛН
Unit 2   NUMBER SYSTEM Part 1
21:21
Dr AC Study Point
Рет қаралды 63
BS-8. Single Element in Sorted Array
22:16
take U forward
Рет қаралды 181 М.
BS-3. First and Last Occurrences in Array | Count occurrences in Array
25:28
BS-17. Aggressive Cows | Binary Search Hard
26:44
take U forward
Рет қаралды 187 М.
Dependency Injection, The Best Pattern
13:16
CodeAesthetic
Рет қаралды 901 М.
Kadane's Algorithm | Maximum Subarray Sum | Finding and Printing
20:09
take U forward
Рет қаралды 517 М.
BS-16. Kth Missing Positive Number | Maths + Binary Search
22:52
take U forward
Рет қаралды 168 М.
ВЛОГ ДИАНА В ТУРЦИИ
1:31:22
Lady Diana VLOG
Рет қаралды 1,2 МЛН