Binary Search Algorithm - Theory + Code

แชร์
ฝัง
  • เผยแพร่เมื่อ 12 ก.ย. 2024

ความคิดเห็น • 695

  • @KunalKushwaha
    @KunalKushwaha  หลายเดือนก่อน +6

    DSA + interview preparation playlist: th-cam.com/play/PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ.html

  • @mohitbalwani
    @mohitbalwani 3 ปีที่แล้ว +601

    That's what I expected!
    I already know binary search but knew that I will definitely learn something new from every video of this playlist. And guess what, I learned the improved version of binary search formula (start + (end - start) /2 ) !
    Thanks a lot Kunal ❤😄

    • @KunalKushwaha
      @KunalKushwaha  3 ปีที่แล้ว +77

      My pleasure!

    • @CodeforTonight
      @CodeforTonight 3 ปีที่แล้ว +10

      @Mohit Same for me Folk..

    • @ranirathore4176
      @ranirathore4176 3 ปีที่แล้ว +3

      same with me I know binary search but I never thought what if we don't know in which order array is sorted? Thanks, @ Kunal for such a good course.

    • @agyaani8060
      @agyaani8060 3 ปีที่แล้ว +1

      Same bhaiii...Thanks kunal❤

    • @mohammadejaz540
      @mohammadejaz540 3 ปีที่แล้ว +7

      I learn here some new concept like Order Agnostic Binary search before this I didn't hear the Agnostic Binary search 😂

  • @piyushrawat42
    @piyushrawat42 หลายเดือนก่อน +6

    Bro it took me 2 years to start your course. The entire playlist has been saved since you uploaded all the 60+ videos as a playlist. But since last 2 weeks I have been watching them relentlessly and the amount of confidence I have gained in my coding skills has drastically improved. Big thanks to you my man.
    And I really crack up when you crack a joke in between the lecture.
    May God Bless you Kunal just like you have blessed us all.
    I am a QA Engineer btw

  • @gabrielfono844
    @gabrielfono844 6 หลายเดือนก่อน +30

    As software engineer here in Seattle , I could tell you all this dude has an amazing content.
    On my free time , instead of wasting my time on social media watching videos that don’t provide any value to me , I spend my whole time watching kunal as I am preparing to switch to MAANG this year.
    Thanks a lot

  • @SoloScholar0202
    @SoloScholar0202 3 ปีที่แล้ว +170

    I turned off my adblocker, only to reward you for this amazing explanation kunal. Keep up the good work mate. Do share your payment details, I would love to help you. Thanks once again. ♥♥

    • @vishaldinesh
      @vishaldinesh 2 ปีที่แล้ว +1

      I doesn't work like that

    • @funtrap2289
      @funtrap2289 2 ปีที่แล้ว +1

      Were to get assignment answer code
      I'm confused about assignments
      Can any one explain

    • @funtrap2289
      @funtrap2289 2 ปีที่แล้ว

      @@sayedhaneef6068 where to get answers

    • @train9688
      @train9688 7 หลายเดือนก่อน

      ans are available in leetcode itself@@funtrap2289

    • @chaitanyarepuri8302
      @chaitanyarepuri8302 7 หลายเดือนก่อน +3

      is it a pickup line bro?

  • @gaishiya7696
    @gaishiya7696 3 ปีที่แล้ว +58

    "Binary Search made easy by kunal"
    The Next Aditya Verma!!!
    Almost everyone would ignore the debugging part,start+(end-start)/2,logN when they do teach Binary Search.However you stand apart from em!

    • @KunalKushwaha
      @KunalKushwaha  3 ปีที่แล้ว +17

      Learning made easy and fun!

  • @swayam4148
    @swayam4148 3 ปีที่แล้ว +65

    Brother, I earnestly respect you & your hardwork that you're doing for us without any personal gains...Kudos to you bro😊💓👏

    • @KunalKushwaha
      @KunalKushwaha  3 ปีที่แล้ว +15

      Thanks a ton

    • @jaynimje3790
      @jaynimje3790 ปีที่แล้ว

      Help. I have doubt.
      Unless we tell a function what to return, it wont return anything.
      Then how does the Binary search know that it has to return the index of target.
      I am posting this on random comments. If anyone knows the answer to this please comment.

    • @manikmahajan2603
      @manikmahajan2603 ปีที่แล้ว +1

      @@jaynimje3790 At 37:20, you can see on line 12 that the return type of the function int.
      This is how we tell the compiler that this function will return a value of type int.

  • @ShOcKw4vEGaming
    @ShOcKw4vEGaming 11 หลายเดือนก่อน +17

    This guy is on another level in terms of teaching method. You don't know kunal how much you are helping people learn these complex things in the easiest way possible. Thanks a lot. You deserve the world kunal.

  • @gilfoyle2211
    @gilfoyle2211 2 ปีที่แล้ว +20

    mid = start +(end -start)/2 blew away the problem I was facing in passing huge arrays.
    Then came order-agnostic that compares start and end element to decide whether ascending or descending array🤯
    Thanks Kunal, I'm enjoying this course🚀

    • @jaynimje3790
      @jaynimje3790 ปีที่แล้ว +1

      Help. I have doubt.
      Unless we tell a function what to return, it wont return anything.
      Then how does the Binary search know that it has to return the index of target.
      I am posting this on random comments. If anyone knows the answer to this please comment.

    • @shivendrashrivastwa4566
      @shivendrashrivastwa4566 ปีที่แล้ว

      @@jaynimje3790 Brother, he is returning the mid and mid is that index. 😊

    • @ousmanesangary658
      @ousmanesangary658 ปีที่แล้ว

      @@jaynimje3790 Our goal is to find and return the middle element only. The start and end pointers are just there to go left or right whenever the target element is less or greater than the middle element. If the target element isn't found, we will then return -1 instead of the index of the middle element. Hope this helps.

    • @Krishnaeagle-ex4zj
      @Krishnaeagle-ex4zj 2 หลายเดือนก่อน

      Instead of remembering mid = start +(end-start)/2 can't we do the same as mid = (start/2) + (end/2) ??

  • @jashanbansal2613
    @jashanbansal2613 3 ปีที่แล้ว +23

    Although I got to know about Ur channel just yesterday, But I wanna tell ki U r doing great man. Some people cannot ingest the fact that someone junior to him is also doing these things and getting that much audience. Its just hurting there ego, Nothing else.

  • @aadeshsharma0001
    @aadeshsharma0001 3 ปีที่แล้ว +132

    How Kunal make course- "complete dsa course"
    How Ed tech mafia make courses -
    Dsa for beginners
    Dsa intermediate level
    Dsa advance level
    Dsa for FAANG
    Dsa with c++
    Dsa with Java
    Dsa with python
    Dsa in real life .
    Dsa in 100 days.
    Inshort it's their business to keep making courses otherwise what they will do if they make a single course.
    Hope u r getting their strategy for non ending course making business.

    • @L-CSE-AyanKumar
      @L-CSE-AyanKumar 3 ปีที่แล้ว +6

      Best Comment Ever! This is the absolute truth...

    • @shomiksingh5929
      @shomiksingh5929 3 ปีที่แล้ว +11

      DSA toh DSA howe hai, chahe C++ ho ya GoLang. :P Love your content Kunal, while my peers are busy watching Money Hies i am spending my time here in your DSA playlist.

    • @deepanshu5386
      @deepanshu5386 2 ปีที่แล้ว +3

      @@shomiksingh5929 😂😂dangal op🔥

    • @prakharagrawal7010
      @prakharagrawal7010 2 ปีที่แล้ว +14

      You forgot "Master DSA in 5 Hours, Marathon Class" 😂😂😂😂😂

    • @L-CSE-AyanKumar
      @L-CSE-AyanKumar 2 ปีที่แล้ว +2

      @@prakharagrawal7010 🤣🤣🤣

  • @rashirasoi6158
    @rashirasoi6158 2 ปีที่แล้ว +48

    Hey Kunal !! This is the best course which I found in youtube and Now I started loving data structures your way of explaining each concept is outstanding. You are doing a great job. I have recommended this course to all my friends. Thanks alot for making such amazing videos.

    • @KunalKushwaha
      @KunalKushwaha  2 ปีที่แล้ว +5

      It's my pleasure

    • @funtrap2289
      @funtrap2289 2 ปีที่แล้ว

      Were to get assignment answer code
      I'm confused about assignments
      Can any one explain

    • @jaynimje3790
      @jaynimje3790 ปีที่แล้ว

      Help. I have doubt.
      Unless we tell a function what to return, it wont return anything.
      Then how does the Binary search know that it has to return the index of target.
      I am posting this on random comments. If anyone knows the answer to this please comment.

  • @shubhamagarwal1434
    @shubhamagarwal1434 10 หลายเดือนก่อน +5

    # GOD Of DSA
    Hi I am a 11yr exp java guy was searching for some free course on youtube for DSA came accross your course and i just feel love in it...all in one place that too with java...i must say you have done very awsome work...your name will be there on this earth as long as DSA will be asked in interviews...May Supream Lord Vishnu Bless You.. ✌🙏

  • @payalsingh7238
    @payalsingh7238 3 ปีที่แล้ว +24

    His continues efforts inspires us to do the same, literally!!!

  • @anushka472
    @anushka472 2 ปีที่แล้ว +11

    I am completely shocked by the quality content that you provide Man!!!! Definitely going to share it with all my friends ..Thanks for providing it for free .Its much more than any paid course on any platform.

    • @jaynimje3790
      @jaynimje3790 ปีที่แล้ว +1

      Help. I have doubt.
      Unless we tell a function what to return, it wont return anything.
      Then how does the Binary search know that it has to return the index of target.
      I am posting this on random comments. If anyone knows the answer to this please comment.

    • @npooja9976
      @npooja9976 ปีที่แล้ว +1

      ​@@jaynimje3790same doubt

    • @vyasm2556
      @vyasm2556 ปีที่แล้ว

      @@jaynimje3790 Go and watch the previous videos in his playlist

  • @BG-lj6fw
    @BG-lj6fw 2 ปีที่แล้ว +4

    I'm actually short of words to praise this. I just wish that as a student i justify your hardwork . All the very best to you. Keep radiating goodness.

  • @-ShangsitNath
    @-ShangsitNath 3 ปีที่แล้ว +23

    Thanks a lot, Kunal Bhaiya for this amazing course.
    Earlier I was not able to solve the questions on leetcode. But after starting with your course, I am able to solve easy-level questions.
    Very excited for the question-solving videos !!!!

    • @KunalKushwaha
      @KunalKushwaha  3 ปีที่แล้ว +5

      You are most welcome

    • @funtrap2289
      @funtrap2289 2 ปีที่แล้ว +1

      Were to get assignment answer code
      I'm confused about assignments
      Can any one explain

  • @joshjoshi5691
    @joshjoshi5691 2 ปีที่แล้ว +15

    Had my teacher explained the same way, I would have enjoyed Java.
    Switched to Python. Now back to Java because of this course.
    I'm enjoying java because of you.
    Thanks a lot

  • @67SAYAK
    @67SAYAK 3 ปีที่แล้ว +21

    I am having 2 year exp in a good product company [not fang], still I am learning from your playlist everyday , and preparing for switch, thanks brother .

  • @imlearninghelppls2544
    @imlearninghelppls2544 7 หลายเดือนก่อน +1

    I absolutely love how thorough you are in your explanations. This is the difference between you and also my professors from university. Most of the time they just give a very simple explanation without covering some details that are ESSENTIAL for understanding even the most basic algorithms. Thank you very much for helping me, I cannot wait to watch this entire playlist!

  • @thenjproduction4061
    @thenjproduction4061 3 ปีที่แล้ว +20

    Since I'm an absolute beginner and started a little late, I'm having a hard time catching the pace of the course. But no worries, Aaram sey sab samajke karenge.

  • @amitpalsingh8408
    @amitpalsingh8408 3 ปีที่แล้ว +8

    you are awesome Kunal. First explanation then topic-based questions , this approach is a game-changer. Your teaching inspires us to learn more. This boot camp is gonna be a huge success.

    • @jaynimje3790
      @jaynimje3790 ปีที่แล้ว

      Help. I have doubt.
      Unless we tell a function what to return, it wont return anything.
      Then how does the Binary search know that it has to return the index of target.
      I am posting this on random comments. If anyone knows the answer to this please comment.

    • @travelwdrk
      @travelwdrk ปีที่แล้ว

      @@jaynimje3790
      reason is we let
      start = index 0
      and end = index last not element at last so it return index

  • @Mahak_Jainn
    @Mahak_Jainn 6 หลายเดือนก่อน +29

    02/03/2024 - day 7 of learning DSA+JAVA

    • @darkpunk9960
      @darkpunk9960 2 หลายเดือนก่อน

      Where did you reach bro??

    • @Mahak_Jainn
      @Mahak_Jainn 2 หลายเดือนก่อน

      @@darkpunk9960 bro now I'm currently doing practice and trie, graph , ye nhi aata baaki ka thoda bahut aane laga hai

    • @darkpunk9960
      @darkpunk9960 2 หลายเดือนก่อน +2

      @@Mahak_Jainn thanks you keep doing!

  • @sudeepkanda
    @sudeepkanda 9 หลายเดือนก่อน +1

    32:05 : why we use start+(end-start)/2 ? --> integer max value limit
    48:30 : for checking whether array is ascending or descending in a sorted array just check first and last elements if all are equal the both also will be equal else there always is difrrence

  • @animeshrose
    @animeshrose 2 ปีที่แล้ว +21

    Thank You again Kunal, such a wonderful lecture now I think how we we're taught, looking forward to your tree and graph videos.

  • @sanyasee17
    @sanyasee17 2 ปีที่แล้ว +4

    I have seen a lot of videos to understand Binary Search also tried paid courses but I found this is the Best Video to understand Binary Search.
    Lots of Love Kunal Bhai ❤

  • @PROTECHRAHUL
    @PROTECHRAHUL 3 ปีที่แล้ว +10

    Kunal bhai is doing what legends do😍.

  • @navyaanimone5209
    @navyaanimone5209 2 ปีที่แล้ว +9

    I am from arts but keen to learn Programming. By gone through your videos really my curosity of learning coding is increasing doubly. All videos have the desire of getting awards. All are the best when comparing to other coding youtube videos. THANKS KUNAL BRO 😊

  • @nishantsingh2513
    @nishantsingh2513 3 ปีที่แล้ว +70

    Kunal = EdTech Startup Killer 😂😂

  • @technicalcrackers5327
    @technicalcrackers5327 3 ปีที่แล้ว +8

    Wow this is the real learning every bit of thr video is infused in my brains memory great work kunal bhaiya!!!!! ❤❤

  • @user-zb2ee1yg5v
    @user-zb2ee1yg5v 10 หลายเดือนก่อน +4

    I am short of words to praise this course .Thanks dear Kunal for providing us all quality education.

    • @KunalKushwaha
      @KunalKushwaha  10 หลายเดือนก่อน +1

      Glad to hear that

    • @user-zb2ee1yg5v
      @user-zb2ee1yg5v 9 หลายเดือนก่อน

      @@KunalKushwaha 🥹🫶🏻

  • @santhikakani1627
    @santhikakani1627 10 หลายเดือนก่อน +2

    Before watching your video, I thought these data structures are very difficult, after watched your video now I am getting confident I can also solve DS problems. Thank you Very much for your explanation.

  • @PrasadRanjane-rl9zx
    @PrasadRanjane-rl9zx ปีที่แล้ว +2

    These videos have helped me a lot this past month. Very grateful to Kunal for doing this, for helping students like us prepare for interviews. I am very eager for the upcoming videos and I hope you post them as soon as possible.

  • @NithyaShree-lv3my
    @NithyaShree-lv3my หลายเดือนก่อน +1

    You are the best at teaching how the code works❤ I have literally watched so many channels but this one is the best one so far!!❤️❤️

  • @pradyotranjan5462
    @pradyotranjan5462 2 ปีที่แล้ว +4

    Hey Kunal, I am a first year student. I really enjoy java and have been doing it since 10th standard. I really love your videos man, you are my only mentor and I l really look up to you. I am already trying to improve my coding knowledge(First sem.), I really wish to become someone like you in the near future. Thanks a lot for being out there for students like me.

    • @codewithvenky
      @codewithvenky ปีที่แล้ว

      Hi
      Now we Both on same year ...I really wanna like minded person in Java

  • @Nitishkumar-qy5gm
    @Nitishkumar-qy5gm 2 ปีที่แล้ว +3

    Kunal bro your teaching style is awesome I watched your all video without skipping a single time

  • @suvraneelsaha8973
    @suvraneelsaha8973 2 ปีที่แล้ว +3

    the way you found out the level k in the binary search is hust magic . so simple yet effective

  • @hrithikpandey1482
    @hrithikpandey1482 2 ปีที่แล้ว +5

    20:24, here boys, along with binary search , he taught us one more thing xD
    Great tutorial btw

  • @automationneemo
    @automationneemo 2 ปีที่แล้ว +6

    Superb playlist on DSA. Learning so many things. Thank you!

  • @zaid649
    @zaid649 2 ปีที่แล้ว +2

    In this point 17:46 The Integer Value will be 5.
    Most Appreciated Person @Kunal Kushwaha who make a DSA playlist like a Candy, once you start and you will not Stop..!!

  • @dipalisavaliya295
    @dipalisavaliya295 ปีที่แล้ว +2

    Anyone can learn with Kunal!! Extremely detailed and fairly explained! And that too for free ! Thanks a lot :) God bless you:)

  • @divyanshugupta6826
    @divyanshugupta6826 2 ปีที่แล้ว +6

    The way you explain is just on next level . You are Amazing keep it up Sir .❤️❤️

    • @jaynimje3790
      @jaynimje3790 ปีที่แล้ว

      Help. I have doubt.
      Unless we tell a function what to return, it wont return anything.
      Then how does the Binary search know that it has to return the index of target.
      I am posting this on random comments. If anyone knows the answer to this please comment.

  • @adarsh_endeavour
    @adarsh_endeavour 2 ปีที่แล้ว +3

    This Binary Search was the most amazing topic most of the previous topics were hard and so hard for me to scale but when I came to this binary search lecture in this playlist then It helps to learn linear search as well as this binary search topics also Taught so beautifully. Thanks Kunal .That's totally amazing and mind opening lecture for me.

    • @jaynimje3790
      @jaynimje3790 ปีที่แล้ว

      Help. I have doubt.
      Unless we tell a function what to return, it wont return anything.
      Then how does the Binary search know that it has to return the index of target.
      I am posting this on random comments. If anyone knows the answer to this please comment.

    • @jaspreetsodhi
      @jaspreetsodhi ปีที่แล้ว

      ​@@jaynimje3790unless it's explicitly mentioned return type is void u will have to return something otherwise it will give error in code

  • @saketbarnawal2167
    @saketbarnawal2167 2 ปีที่แล้ว +2

    Just love this episode of Binary Search.
    Thank You so much for this series.

  • @manojrai561
    @manojrai561 2 ปีที่แล้ว +1

    I have only watched 3 videos of your DSA and I become your fan. Really excited to watch all your DSA videos.

  • @sumitmukharjee5816
    @sumitmukharjee5816 3 ปีที่แล้ว +2

    Superb explanation of Binary seach I have seen many videos of binary search like ending in just 7 to 8 minutes but this is out of the world.
    Nice work.Waiting for next one

  • @hemantbhonsle1087
    @hemantbhonsle1087 3 ปีที่แล้ว +9

    What if we use double data type instead of int, then will the (start+end)/2 formula is worth or not?
    Enjoying the course, Keep it up Kunal 🙏

    • @arnodorian8307
      @arnodorian8307 3 ปีที่แล้ว +6

      then mid = (start+end)/2 may be a decimal no. like say, 3.56, which is not a proper index, so you'll have to take Base of that 4.2 to 4. So, just use int and save yourself from the trouble.

    • @anurag3487
      @anurag3487 ปีที่แล้ว

      you can do with double, but ultimately you need to typecast it into int to get the integer part. Looks like one more additional step and var creation.

  • @shailuyadav6227
    @shailuyadav6227 ปีที่แล้ว +1

    DSA TH-cam playlist is Diamond, but GitHub link is Platinum so Overall thank you Kunal giving all of me a great material ❤❤

  • @sohamsen7892
    @sohamsen7892 3 ปีที่แล้ว +10

    You and Aditya Verma are two such educators who are like a breath of fresh air. Currently, a 3-year exp guy preparing for my coding interviews in product-based companies. I could see you becoming the Bucky Roberts for DS and Algo. Keep up the good work and also eagerly looking forward to the full content.

    • @jaynimje3790
      @jaynimje3790 ปีที่แล้ว +2

      Help. I have doubt.
      Unless we tell a function what to return, it wont return anything.
      Then how does the Binary search know that it has to return the index of target.
      I am posting this on random comments. If anyone knows the answer to this please comment.

    • @dd82100
      @dd82100 ปีที่แล้ว +1

      In the function we have given Return type as int .
      Whenever target matches mid element we are returning index of mid element .

    • @331sachinkiragi8
      @331sachinkiragi8 ปีที่แล้ว +2

      @@jaynimje3790 when arr[mid]==target
      Means your mid is pointing to the target element so you are returning mid that is nothing but the index of the target element

  • @roshanmhatre8810
    @roshanmhatre8810 3 ปีที่แล้ว +3

    Explanation was wonderful!
    A request, please don't stop Guidance and non-technical videos.
    I dunno what happened but due to actions of some students, it would be unfair for all other thousand of students who need it.

  • @vasvibali9907
    @vasvibali9907 21 วันที่ผ่านมา

    it's just so amazing that your videos increased my confidence in coding ...i mean its just wow like how can someone teach like this with every little detail. I watched many videos but they didn't helped me. It's my first ever comment i just couldn't control myself to praise your efforts.
    Thank you so much Kunal sir.

  • @shuklshivam
    @shuklshivam 2 ปีที่แล้ว +1

    Amazing Video, @kunal. Leaving this comment for the YT algorithm

  • @moeen007
    @moeen007 3 ปีที่แล้ว +2

    Never have I ever understood Binary Search better.
    ❤️ from KASHMIR!

  • @SoftwareTestingQA
    @SoftwareTestingQA 2 ปีที่แล้ว +5

    Still big fan on how you explain the train of thought to get to the solution and not just say it. So much easier to remember

  • @nikhilteja8171
    @nikhilteja8171 2 ปีที่แล้ว +3

    Kudos man... wow!... I enjoyed this lecture bro... CHEERS!... I learnt abount binary search nicely... keep going on bro...

  • @xyzadmin123
    @xyzadmin123 3 หลายเดือนก่อน +1

    hey kunal plz complete the DSA bootcamp you are the best teacher in the world.... i am waiting for your upcoming videos

  • @lalithas97
    @lalithas97 ปีที่แล้ว

    I have a bear minimum idea about java. I am so happy to watch this video. I didn't have any idea about binary search. The way you teach is amazing! Because I didn't feel I was watching 1 hr video.. I enjoyed learning about binary search. THANK YOU!

  • @avanishdubey6556
    @avanishdubey6556 3 ปีที่แล้ว +2

    Thank you for clearing my all doubt about binary search as well as adding some extra knowledge about Binary Search.

  • @charlesopuoro5295
    @charlesopuoro5295 ปีที่แล้ว +1

    You do a great job in helping us understand concepts by thinking in inks. Thanks a whole lot Kunal for your charitable endeavors. Salute.

  • @vishalljeganath
    @vishalljeganath 24 วันที่ผ่านมา

    Best Video to learn DSA. Its great to understand the each concept of DSA very well.

  • @MaximoGamesTV
    @MaximoGamesTV 2 ปีที่แล้ว +1

    This is not just a video. Thank you very much for the valuable informations and lectures.

  • @ramit1411
    @ramit1411 2 ปีที่แล้ว +2

    Brother you are amazing! I was lost before this. Thank you so much! Keep doing this amazing work.

  • @vedanthbaliga7686
    @vedanthbaliga7686 3 ปีที่แล้ว +1

    Thanks for the video Kunal! I knew about binary search but leant about agnostic binary search :). Last 90 seconds really pumped me up. Excited for the questions video 👍

  • @lucifercoxi8324
    @lucifercoxi8324 2 หลายเดือนก่อน +2

    This course will surely make me understand DSA in 2024👌

  • @adityadhumal07
    @adityadhumal07 2 ปีที่แล้ว +2

    Stay tuned I will upload the next video soon.
    What rhyme❤️💯😃
    57:25

  • @ritikatiwari3753
    @ritikatiwari3753 2 ปีที่แล้ว +2

    you are amazing kunal great contribution to community !!!

  • @indianintrovert281
    @indianintrovert281 6 หลายเดือนก่อน

    Best ever Java course Avaliable on TH-cam... I am addicted to learning Java

  • @rakeshbabu4790
    @rakeshbabu4790 3 ปีที่แล้ว +2

    Don't care about negative comments,Kunal....in every field negative comments will be there.... just see the postive side and move on..... though you know how to overcome this..but I didn't like other people showing finger on you,... always postive vibes

    • @KunalKushwaha
      @KunalKushwaha  3 ปีที่แล้ว +8

      Literally no one cares about them lol, they made no one proud and say things to make themselves feel better. My work speaks for itself and it will help lakhs of students.

  • @amrendrasingh6448
    @amrendrasingh6448 2 ปีที่แล้ว +3

    You are doing the best. Hope you roll out other videos soon on tree, map and other important topics.

  • @akashyadagouda896
    @akashyadagouda896 2 ปีที่แล้ว +3

    Nice video,
    good for all kind of students.
    Must watch for BS

  • @mirzahazik5385
    @mirzahazik5385 3 ปีที่แล้ว +2

    Bro in the worst case the no of comparisons will be double of what u said as at eavh step we check if Target= middle which is not in worst case and then we will check whether target >or

  • @vilaspawar6913
    @vilaspawar6913 2 ปีที่แล้ว +3

    sir, it's from from every one please complete the course we are waiting for your next videos and these videos are very helpful please sir complete the course

  • @PremiumKB
    @PremiumKB ปีที่แล้ว +1

    After putting in a little thought, it clicked, that is why (start + end)/2 is not good to use. start+end can lead to overflowing in the integer range size and result in an error. So if we do (end - start)/2 --> we are subtracting first and then dividing by 2. This will for sure reduce the value and it will be in the integer range even after we add the start value to it.

  • @Akash-bhumbak
    @Akash-bhumbak 3 ปีที่แล้ว +1

    Your point is very good that you explain even the smallest things. 🙌🙌

  • @prachigupta9436
    @prachigupta9436 28 วันที่ผ่านมา

    I can see myself learning new in each and every video of this playlist of yours, I really want you to upload this kind of free youtube playlist for other skills especially in Cybersecurity field.

  • @abhineveash
    @abhineveash 6 หลายเดือนก่อน +1

    Amazing kunal sir, I have recommended to all my colleague friends

  • @rockeykumar3348
    @rockeykumar3348 ปีที่แล้ว +1

    Kunal kushwaha bhaiya you are the gem 💎 personality for many students ❤️❤️

  • @srikanthmacha7990
    @srikanthmacha7990 3 ปีที่แล้ว +6

    Bro which one is better for a student .... Open Source Contribution or Freelancing?? I thought freelancing would be a better side hustle for students but what are you thoughts on this??🤔🙏

    • @RaviShankar-xn1sv
      @RaviShankar-xn1sv 3 ปีที่แล้ว +1

      Yes Same question i also have....but I'll say my mind......i think open source can help our portfolio alot....and freelance gives money so choice is ours : )

    • @stalinromi8237
      @stalinromi8237 3 ปีที่แล้ว

      Bro he spoke about the importance of open source contribution in a live session, he got lots of offer from product based company due to that.

    • @srikanthmacha7990
      @srikanthmacha7990 3 ปีที่แล้ว

      @@stalinromi8237 yeah i know .... but i want to know about freelancing too !!

    • @pranavverma5291
      @pranavverma5291 3 ปีที่แล้ว

      Open Source ig.

  • @codingweb3904
    @codingweb3904 3 ปีที่แล้ว +2

    This course is just on another level.... I am addicted to it

    • @annesyabanerjee1892
      @annesyabanerjee1892 3 ปีที่แล้ว +2

      pls complete this on java very soon

    • @codingweb3904
      @codingweb3904 2 ปีที่แล้ว

      @@annesyabanerjee1892 ye is trying his best, don't be selfish

  • @suvraneelsaha8973
    @suvraneelsaha8973 2 ปีที่แล้ว +1

    in order agnostic search
    when finding the order is it ascending or descending
    can we just use a for loop and check each element if
    arr[i+1] >= arr[i]
    another question how can we know that in the middle elements there is an element which is > than the end element
    the array may not be sorted then what
    ?

  • @mcq2427
    @mcq2427 หลายเดือนก่อน

    I just loved it ❤way of your explanation . Thanks 🙏 bro..no one gives this much explanation DSA IN YOU TUBE ❤..keep continuing….for us

  • @haricharanpal1761
    @haricharanpal1761 3 ปีที่แล้ว +1

    Good series for the community, easy to understand and without unnecessary masala...

  • @krishnadahule-gw7wd
    @krishnadahule-gw7wd 14 วันที่ผ่านมา

    I don't know till now why to use start+(end - start)/2
    Now i know
    Thank you kunal bhaiya 😊

  • @darshanrajashekhar5914
    @darshanrajashekhar5914 11 หลายเดือนก่อน

    i love the expression you gave at 15:27 man attitude like thats it..... no more cycle this is beauty of dsa

  • @chai4
    @chai4 3 ปีที่แล้ว +2

    Present ✊
    Edit- just finished watching the whole video.. yay 😃

  • @kiransatyaraj
    @kiransatyaraj ปีที่แล้ว

    he has given the best content, onto the next one, binary search is more clear now, thank you kunal

  • @akashp4863
    @akashp4863 3 ปีที่แล้ว +1

    I knew this concept, I'm coming from non coding bg. I watched it anyway and his explanation is clearly the best

  • @PranayKapoor
    @PranayKapoor 3 ปีที่แล้ว

    I am an experienced IT profession working on banking side ... so money was not the main driving factory, dream to work for FAANG was...thanks for showing us the way

  • @geetankarkarmakar378
    @geetankarkarmakar378 2 ปีที่แล้ว +1

    Next Level Stuff !! Hats off !

  • @rvstech8435
    @rvstech8435 ปีที่แล้ว +1

    like i was scared of dsa now i am loving it

  • @sudiptkumardas7210
    @sudiptkumardas7210 3 ปีที่แล้ว

    One of the best binary search video i have ever seen, u explained it in very smooth way, waiting for ur further videos.

  • @sarojkharia5419
    @sarojkharia5419 4 หลายเดือนก่อน

    Thank you very very much Sir ......my search got end here after getting your video sir ......what an amazing, precise, all in complete one with full detail content you are providing sir....🙏🏻🙏🏻☀️🎊
    Learning Data Structure has become very interesting and easy.....I am so much happy sir...🙏🏻🙏🏻
    Thank you very much sir 🙏🏻🙏🏻💥🎉🎉

  • @subhamdudheria9523
    @subhamdudheria9523 3 ปีที่แล้ว +1

    Best video. I really learnt so much in this video. Please continue your java course do not stop .

  • @naveenkumarm4511
    @naveenkumarm4511 2 ปีที่แล้ว +1

    Oh,my god such a great explanation 😍😍😍😍😍

  • @indukumari193
    @indukumari193 2 ปีที่แล้ว

    After watching only 3 videos of yours I m like..... Yaar banda etna effort kr rha h aur etna sikhne ko mil rha h to like to krna bnta h... Pta nhi etne km likes kyun h jbki views to 37k show ho rha... Great work kunal

  • @onAJourneyToHeaven
    @onAJourneyToHeaven 3 ปีที่แล้ว

    I was not able to understand the concept of binary search in my college days but after seeing this video I was not only able to code the binary search program also did the order agnostic binary search without watching the code part thank you Kunal #DSAWithKunal

  • @sukeshreddy2286
    @sukeshreddy2286 2 ปีที่แล้ว +1

    Love you kunal, Thank you soo much!

  • @shubhampatil-zp5js
    @shubhampatil-zp5js 3 ปีที่แล้ว +1

    20:24 Size does not matter ::: Lord Kunal Kushwaha

  • @sudhanshukushwaha6351
    @sudhanshukushwaha6351 2 ปีที่แล้ว

    now people belong to village can also learn quality education from kunal 😍😍
    #dsawithkunal #qualityeducation

  • @ameybelvalkar8877
    @ameybelvalkar8877 ปีที่แล้ว

    Had Facing Time Limit Exceeded or Runtime Error At Many Binary Search Algorithms Problem but mid=start+(end-start)/2 helped me alot 🤩 Thankyou So Much Kunal