Linear Vs Binary Search + Code in C Language (With Notes)

Поделиться
HTML-код
  • Опубликовано: 5 сен 2024
  • Download the best IDE for C, C# and C++: bit.ly/WholeTo...
    Linear vs Binary search algorithm: In this video, we will see how to code linear search (which runs in O(n)) and binary search (which runs in O(log n)) in C programming language
    This video is a part of my DSA course. If you havent accessed the data structures playlist, make sure you do it asap!
    ➡Join this DS & Algo course & Access the playlist: • Data Structures and Al...
    ➡Download Source Code & Notes here: codewithharry....
    ►Checkout my English channel here: / programmingwithharry
    ►Click here to subscribe - / @codewithharry
    Best Hindi Videos For Learning Programming:
    ►Learn Python In One Video - • Python Tutorial In Hin...
    ►Python Complete Course In Hindi - • Python Tutorials For A...
    ►C Language Complete Course In Hindi -
    • C Language Tutorials I...
    ►JavaScript Complete Course In Hindi -
    • JavaScript Tutorials I...
    ►Learn JavaScript in One Video - • JavaScript Tutorial
    ►Learn PHP In One Video - • Learn Php In One Video...
    ►Django Complete Course In Hindi -
    • Python Django Tutorial...
    ►Machine Learning Using Python - • Machine Learning Tutor...
    ►Creating & Hosting A Website (Tech Blog) Using Python - • [Hindi] Web Developmen...
    ►Advanced Python Tutorials - • Intermediate/Advanced ...
    ►Object Oriented Programming In Python - • Object Oriented Progra...
    ►Python Data Science and Big Data Tutorials - • Python Data Science an...
    Follow Me On Social Media
    ►Website (created using Flask) - www.codewithhar...
    ►Facebook - / codewithharry
    ►Instagram - / codewithharry
    ►Personal Facebook A/c - / geekyharis
    Twitter - / haris_is_here

Комментарии • 874

  • @CodeWithHarry
    @CodeWithHarry  22 дня назад +7

    Hope you liked the video. If you are into C, C# or C++, download the best IDE for C, C# and C++ here: bit.ly/WholeTomato-CWH

    • @Jitu_27
      @Jitu_27 20 дней назад +1

      ❤harry bhai... From West Bengal ❤

  • @harshitachaurasia1246
    @harshitachaurasia1246 4 года назад +586

    All his students gonna achieve something best in their life

  • @CodeWithHarry
    @CodeWithHarry  4 года назад +220

    If possible please share this course and notes with your friends!
    Notes and code have been uploaded on the site: codewithharry.com/videos/data-structures-and-algorithms-in-hindi-12
    Instagram: instagram.com/CodeWithHarry

    • @kishan-gt9bn
      @kishan-gt9bn 4 года назад

      Bhai C++ continue karo please.

    • @oskarr8848
      @oskarr8848 4 года назад +1

      hello sir please make a full course on java swing..plz plz plz full graphics..

    • @yashikasethi3298
      @yashikasethi3298 4 года назад +1

      Will you teach everything in this course?

    • @cryptofacts5833
      @cryptofacts5833 4 года назад

      Sir Photoshop in one video banao na please

    • @lavishsingal4791
      @lavishsingal4791 4 года назад

      Sir pls upload more pygame projects

  • @aradhana8505
    @aradhana8505 3 года назад +144

    Your examples are always to the point, and makes it very easy to understand the concept, Thanks!! And notes are fabulous man, Too gud 🤩👌👌

    • @onkarHINDU
      @onkarHINDU 2 года назад +1

      As these comment is 10 monts ago....does these course help you ?

    • @coccoc5283
      @coccoc5283 Год назад

      Hi

    • @jaimaa9250
      @jaimaa9250 Год назад

      loveeeee

    • @SN1638
      @SN1638 2 месяца назад +1

      Abhi kaha par ho🤔

  • @jaskaran_lol
    @jaskaran_lol 4 года назад +153

    I respect your Hardwork Sir...

  • @rifasehar5983
    @rifasehar5983 3 года назад +60

    5:27 best example till date sunne se pehle hi samaj aagya ☺️☺️

  • @vaibhavbhatnagar951
    @vaibhavbhatnagar951 4 года назад +5

    Harry bhai apka examples ki takkar ma koi nahi ha.... Bilkul crystal clear concepts ho jata ha

  • @rajgaming6733
    @rajgaming6733 3 месяца назад +3

    Book wali example esi thi ki sunne se pehle hi pta lgg gyi binary search algorithm❤

  • @singh_04
    @singh_04 3 года назад +15

    one thing that makes your videos unique is you made our thought process strong in our own mother tongue. Hats off sir 😊

  • @riajikbal2938
    @riajikbal2938 2 года назад +7

    I just can't believe all these resources are free ! Salute you Harry Bhai 👍

  • @bootasingh1103
    @bootasingh1103 4 года назад +37

    HARRY MAKE MORE THIS type I Like your video

    • @mukeshsoni1859
      @mukeshsoni1859 4 года назад +1

      Hi from where you are I think I know you

  • @basudevbehera7210
    @basudevbehera7210 2 года назад +5

    You are 10000000 times better than my college teachers. App ka teaching ka tarika anokha hai. Mujh jese insan kelie aap jese teacher milna khus kismatt hoga. thank you so much. Disle sukriya. Aap jesa purr RUclips me nehi milega koi. 💓💓💓💓💓me aap ke video dekhke bahut ku6 sikha hun

  • @gajananbhoyar5323
    @gajananbhoyar5323 4 года назад +2

    Sahi hai bhai - Perfect example (binary search)

  • @rohankhapre5996
    @rohankhapre5996 3 года назад +2

    Bhai examples ko kya hi bolu mein 🤩 .... jabki aapka padhana hi pro level ka, uska to koi jawab hi nahi 🤩🔥🔥

  • @keshavcodex4173
    @keshavcodex4173 3 года назад +15

    05:23 best examples, keeep giving example

  • @himagnamallikorg
    @himagnamallikorg 8 месяцев назад +3

    Harry Bhai apke Drawings bade mast hote hai 🙃🙃

  • @suryadana1798
    @suryadana1798 4 года назад +7

    Examples are necessary and your examples are good enough to grasp the concept....

  • @akshatgarg338
    @akshatgarg338 Год назад +7

    5:25 harry bhai aapke examples bahut ache hote hai please continue them

  • @rishikeshrathi1421
    @rishikeshrathi1421 4 года назад +6

    bhai the speed with which you are growing is all because of your hardwork. this playlist will help students for years. Marks my words

  • @RahulSharma-bo5jc
    @RahulSharma-bo5jc 3 года назад +27

    Damn, harry bhai the hardwork you put in these courses. Hats off! 🙏❤️❤️
    Thankyou for such quality courses! ❤️❤️❤️

  • @vik7337
    @vik7337 4 года назад +22

    I've never met with this kind of a guru

  • @meaindriladas
    @meaindriladas 3 года назад +43

    Bro please add advanced things also like Kadane's algorithm, subarray, trapping rain water problem and many more which are asked by the companies. It will be very much helpful, your videos and notes are of great clarity hence I am asking you for this portions to be covered. Please Harry bhai banao.

  • @anonymous_ghost_123
    @anonymous_ghost_123 Год назад +8

    32 hours of hardwork

  • @deveshmishra7219
    @deveshmishra7219 3 года назад +17

    Awesome lecture !! I appreciate your hard work to prepare notes & the example which you took to explain.

  • @virajdhumal1621
    @virajdhumal1621 4 года назад +9

    Learning from your videos is best utilisation of our time. Thanks for all the productive courses.

  • @himanshusuchak_0007
    @himanshusuchak_0007 Год назад +12

    your examples are always up to the point and it helps us to easily understand the concept

  • @shivamakhouri7726
    @shivamakhouri7726 4 года назад +8

    Maza aa gya sir ji, Sab clear cut samaj me aa Gya :)

  • @kishansinha8615
    @kishansinha8615 4 года назад +6

    You r donig great work bro we are always in search for some one who explain the things likes this and you have fullfill that thing with your hard work

  • @DristiHandiqueRA
    @DristiHandiqueRA 3 года назад +5

    Your examples are really helpful to understand in simple words and not at all bookish language , Thank you Harry Sir.

  • @dallalstreet1775
    @dallalstreet1775 4 года назад +5

    engeneering colleges bandh karoo , coaching centers bandh karoo
    harry bhai classes shuruu karoo youtube meyy
    thank u harry bhaiii!!!

  • @ronakmaniya2005
    @ronakmaniya2005 Месяц назад +1

    examples
    for liner search -> as search any card from group of cards
    and for binary search -> as search any page number from 1000 pages of book
    both examples are very nice and exactly fit in the situations.

  • @shashankbhosagi
    @shashankbhosagi 3 года назад +2

    5:18
    yarr bhaiya yeh exampl eki wajase ham Concepts ko Real world ke sath relate kar sakte hai aur hame yeh bahut dino tak yaad rahta hai aap aise hi examples diya karo
    aapke examples bahut khatrnak hote hai dimak me chaap chod jate hai 😃😃

  • @harshitachaurasia1246
    @harshitachaurasia1246 4 года назад +7

    Your Teaching with Analogy is best!

  • @vismayyerunkar1374
    @vismayyerunkar1374 4 года назад +2

    bhai complete indepth banana taki refere na karna pade kahi kyuki aaap best teacher ho harry bhai....

  • @ee_22_dharamkumar91
    @ee_22_dharamkumar91 3 года назад +5

    Your example was really fabulous and related to real life experience ❤❤

  • @dilipsunar99
    @dilipsunar99 4 года назад +2

    Hamare teachers bhi itna mehnat padhane mai nahi karte yaar ... thanks a lot bhaiya ❤️

  • @17_nikhilchinchore59
    @17_nikhilchinchore59 3 года назад +19

    this course is too much better than udemy or any other online courses. Thanks harry bhai for this course.

  • @Nahibatayenge
    @Nahibatayenge 7 месяцев назад +1

    Itna sahi explanation abhi tak nahi mila tha sir

  • @rahulvyas3858
    @rahulvyas3858 2 года назад +6

    Harry , you are doing really a great job , proper explanation in depth line by line. Thanks man

  • @Vitamin_protein_USSR
    @Vitamin_protein_USSR Год назад +6

    I am speechless sir , may we can learn and gain knowledge by your hardwork ✨

  • @bunnykumar7796
    @bunnykumar7796 4 года назад +4

    Brother, seriously yaar you are making so knowledgeable videos. I'm very much thankful to you. ❤❤

  • @abdullahnoor565
    @abdullahnoor565 Год назад +2

    Examples kai sath bohat achi samjh ati hai plzzz continue in the future 😇

  • @manjula8718
    @manjula8718 Год назад +1

    Your examples are best examples ever and it helps to understand the concept easy

  • @sakshiugale4891
    @sakshiugale4891 4 года назад +7

    Best DSA playlist ever! Thank you so much Harry Sir for providing it for free!

  • @jaskaran_lol
    @jaskaran_lol 4 года назад +4

    I have Learned many things From your Videos..

  • @maheshgoyal2809
    @maheshgoyal2809 3 года назад +4

    you are awesome!!!!! I must say that you are doing a great job. teaching us languages in a simple way, no one can do this in this way.

  • @aasimahsan6167
    @aasimahsan6167 4 года назад

    "Apne se box bnae ke samjho ache se aayegi ."........it works harry bhai ....... TYSM

  • @RitulSingh
    @RitulSingh 4 года назад +2

    Best video on youtube for linear and binary search.

  • @whys0harsh
    @whys0harsh 2 года назад +1

    Being an EEE student I wanted to learn DSA and I found this Gem 💎

  • @madhabmukherjee1675
    @madhabmukherjee1675 4 года назад +2

    Sir dil se dhanyabad for such a great content in free of cost

  • @arjunsinhparmar908
    @arjunsinhparmar908 2 года назад

    harry bhai me binary search bohot baar sikha but dimag me ghush hee nhi , aapke ek book ke page number wale exmaple se sara fanda clear ho gya thanks for the example ,,,,,....example dete rahiyo.

  • @mujeeburrehman8145
    @mujeeburrehman8145 2 года назад

    binary search samjhana itna aasan he ye me ne kabhi socha bhe nhe tha wah sir you are great

  • @shivampandey5724
    @shivampandey5724 4 года назад +17

    Sir pls provide some links of 15 - 20 questions for practice on each and every topic

  • @dgmusicsongs
    @dgmusicsongs 4 года назад +2

    i daily watch one video before sleeping...Thankyou sir

  • @prasadprashantb.4001
    @prasadprashantb.4001 2 года назад

    Bhai apke example naa 😘😘😍bahut helpfull hote hai concept understand standing me🤩aise hi example dete rehna👍🙏

  • @sufiyanmogal1527
    @sufiyanmogal1527 Год назад

    5:18
    bhai apke example bhot acche hai easy hai aur bhot hi zyada topic ke relatated
    hai

  • @tejaswini9235
    @tejaswini9235 3 года назад +2

    Thanks sir........
    Your videos and notes is very helpful.

  • @ritikchoudhary9601
    @ritikchoudhary9601 3 года назад +2

    thanks a lot harry this couse is really helping me a lot and also saving my money from any other online platform for learning DSA

  • @somsubhrochakraborty9941
    @somsubhrochakraborty9941 2 года назад +2

    Examples makes the concepts easy for understanding

  • @badgerlife9541
    @badgerlife9541 3 года назад

    Makes me happy to see educational videos like these from India with so many views! I don't understand a word, but I can tell that the Indians watching this, and learning on RUclips, will be going places! Great to see this!

  • @abhaymaitra7032
    @abhaymaitra7032 Год назад +2

    Your examples are too good , keep it up.

  • @binoyranjanpradhan6653
    @binoyranjanpradhan6653 4 года назад +4

    Example is superb....

  • @dilnawajkhan7504
    @dilnawajkhan7504 4 года назад +2

    Awesome example by carry sir

  • @moodswingsoflife
    @moodswingsoflife 2 года назад

    You're famous.. don't worry.. you're doing very well...keep it up.. people need this.. people need you..thanks for everything..thanks for your help...your work your efforts...hats off

  • @_Zayn_2004
    @_Zayn_2004 2 года назад +2

    Bro , Just wanna say your explanation is ❤️and your instance during explanation of binary search is adequate to understand concept of binary 💙.It Honour be your Student.

  • @parthparashar3531
    @parthparashar3531 4 года назад +2

    Harry bhaiya I am a big fan please ek baar aap like Kar do iss comment ko aur hn Meri ek wish hai ki aap plz plz plz Jarvis ko tkinter me banane ka tutorial dedo btw Maine apne 7 friends se aapka channel subscribe karwaya hai aapko hum sab ka full support luv from bihar

  • @chinmaywasule249
    @chinmaywasule249 Год назад +1

    Jab Harry bhai ho saath tab drne ki kya baat
    !!!

  • @Svade_edits_420
    @Svade_edits_420 4 года назад +1

    Harry bhai ,
    Congo for 500k
    👌👌👌👌👌👌👌👌

  • @sougatakansabanik6251
    @sougatakansabanik6251 3 года назад +2

    I'm totally loving your videos which are really helping me to prepare... thanks from the bottom of my heart

  • @azizuddinshaikh3796
    @azizuddinshaikh3796 Год назад +2

    Hats off for your efforts Sir,
    Literally I got habit of you voice and teaching style for my studies.
    Thank U again for such priceless efforts and help for us 💖

  • @lokesh6828
    @lokesh6828 11 месяцев назад

    The example for binary search was actually very appropriate. I appreciate it

  • @oneoflittlecitizen
    @oneoflittlecitizen Год назад +2

    5:39
    Example is very nice sir, keep giving such more examples.

  • @manjiripanchal6226
    @manjiripanchal6226 3 года назад +2

    Your examples are best !!They help to absorb concepts fast! thanks

  • @deepaksarangi3663
    @deepaksarangi3663 2 года назад +2

    Bahut badhiya examples hai🔥🔥🔥❤️❤️😀

  • @kingsman-8830
    @kingsman-8830 Год назад +2

    Now I clearly understand 😊😊😊😊😊😊😊

  • @saurabhsingh4426
    @saurabhsingh4426 2 года назад +1

    Example bhaut aache lag rahe hai Bhaiya 😊.

  • @ShaileshYadav-pc1jg
    @ShaileshYadav-pc1jg 2 года назад

    05:12 ,ye book wala example to ekdum best hai harrybhai, ekdum real life example👌

  • @nurainkhan4968
    @nurainkhan4968 3 года назад

    best and relatable examples...koi part aisa nhi jo smjh ni aata...love u harry bhai

  • @pritipattnaik7569
    @pritipattnaik7569 4 года назад +4

    Plz make a new playlist on Android Studio....I want to learn android development from you only....because your concept is very clear and you just explain all courses in an easiest and simplest way....plz make this course...it's an humble request

    • @balancemyself
      @balancemyself 4 года назад

      Already make please check his channel videos

    • @pritipattnaik7569
      @pritipattnaik7569 4 года назад

      I know but that Playlist was very short....I want a playlist just like a course such as C Language......I've already watched all his videos.

  • @girrajdohare
    @girrajdohare 3 года назад +2

    5:24 Your example and analogy are always best

  • @rohansengupta667
    @rohansengupta667 3 года назад

    EXAMPLE ARE OBVIOUSLY NECESSARY ...AND HARRY BHI YOUR EXAMPLES ARE OUT OF THIS WORLD ...COULDN'T EXPECT MORE .

  • @pranjalck
    @pranjalck 3 года назад +2

    5:23 best example for understanding 😍👀

  • @surendradahare704
    @surendradahare704 2 года назад

    Your way to explain is too good 😊😊😊 and your example is osam 🙏🏻🙏🏻🙏🏻 is topic ko itna achhe se samjhane ke liye bahut bahut dhanyawad sir

  • @priyanshupriyadarshan6332
    @priyanshupriyadarshan6332 2 года назад

    Bhaiya apke examples sabse best aur sath hi sath utne hi simple hai

  • @shubhamgoswami8751
    @shubhamgoswami8751 3 года назад

    Bahut badhiya example deye ekdam samjh me AA rha thanks you

  • @gopalkrishnahota9144
    @gopalkrishnahota9144 2 года назад +2

    The best way to understand Linear search and Binary search. Loved the binary search example you gave. XD Great work Harry sir.

  • @SANIKADIXIT-vi3fk
    @SANIKADIXIT-vi3fk Месяц назад

    Binary search real life example is best example everrrr bhai🎉🎉

  • @Influenza-z1i
    @Influenza-z1i 3 месяца назад

    harry bhai your exmaples are very good and funny but they also make us understand concepts better then any other example

  • @krishnasavanth5071
    @krishnasavanth5071 4 года назад +2

    Explanation super Harry bro ❤️😘

  • @chandanrathore4188
    @chandanrathore4188 2 года назад +2

    Nice examples bro help us to understand the concept so use examples in every videos of yours. Very Helpful

  • @rishigaming2767
    @rishigaming2767 2 года назад

    thanks for helping as you are god of computer science field....🙏🙏🙌🙌

  • @Deepakguptaa07
    @Deepakguptaa07 3 года назад

    harry bhai sahi example dete ho yarr kya baat hai ..

  • @debobratapal7162
    @debobratapal7162 2 года назад +1

    After 6 months of continuous watching. I thought I have subscribed CodeWithHarry but today I noticed I haven't subscribed yet so I did it. Sorry Harry bhai 😅😅

  • @DebangshuChakrabarti_
    @DebangshuChakrabarti_ 3 года назад

    I'll never forget or get confused with the binary search after your book-wala example...thanks a lot bhai

  • @ashish_srj
    @ashish_srj 3 года назад

    BHAI aap ka example कतई जहर aur समझने का तरीका उससे भी जहर Thanks bro😊

  • @hrsheth6352
    @hrsheth6352 2 года назад

    Binary search ka example bahut badhiya tha 👍👍

  • @traderbot742
    @traderbot742 3 года назад +3

    Examples based on real-life are awesome.

  • @Gkgvkufjoyg
    @Gkgvkufjoyg Год назад

    05:30 examples bhut achha dete ho aap Harry bhaiya 👍

  • @ryn0572
    @ryn0572 4 года назад +1

    Nice work......can you make a video where you can tell all competition available for computer genious????

    • @ryn0572
      @ryn0572 4 года назад

      BTW Binod

  • @deep.thinking.
    @deep.thinking. 2 года назад +1

    5:26 I really thinking what will be example for Binary and you give great example