8.2 Searching in Arrays | Linear and Binary Search | C++ Placement Course |

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ต.ค. 2020
  • Notes of this video will be uploaded in a short while :)

ความคิดเห็น • 1.2K

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

    These guys are just amazing.And they were doing such a great work.
    They were giving a very quality education for free.
    Please guys support them all.🙏🙏🙏

  • @CricketLover-kc6ln
    @CricketLover-kc6ln 3 ปีที่แล้ว +172

    Man with the mission 🔥🔥🔥❤️

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

      Like Elon musk 👻😉🤣🤣🤣

    • @CricketLover-kc6ln
      @CricketLover-kc6ln 3 ปีที่แล้ว

      @@jaiveer9306 😀😂

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

      @@CricketLover-kc6ln Tera aukat bhi nahi h Sharda jaise prestigious university me admission lene ka

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

      @@CricketLover-kc6ln Tera aukat bhi nahi h Sharda jaise prestigious university me admission lene ka

    • @Shubham-rv5cm
      @Shubham-rv5cm 3 ปีที่แล้ว +1

      Man on mission

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

    Mam you are really god for us, likes poor and middle class background students
    Your technique of teaching is just amazing
    your video makes easy to understand any topics...tqqqq my fav mam

  • @RiyaSharma-gm5om
    @RiyaSharma-gm5om 3 ปีที่แล้ว +18

    Truly amazing content, I just love this series.

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

    Explaining Binary search complexity is awesome. I like it

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

    your teaching style is quite good and i want notes of this lecture. i saw previous request for notes But you didn't upload on this video.
    kindly upload the notes as soon as possible its my humble request to you. Keep Growing.

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

    Best video ever.
    Thank you mentor and Aman dhattarwal for this awesome contribution to the society. More power to all the members of Apna College.

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

    Thank you so much AMAN BHAIYA and the whole team of APNA COLLEGE ❤️❤️✨✨

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

    whenever mam say 'thik hai' i feel very good

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

    Addition : : Binary Search applicable only when the given array is sorted. If not, we first need to sort the array and then find the element using the binary search function.

  • @severemage3374
    @severemage3374 ปีที่แล้ว +62

    0:49 linear search
    3:30 binary concept
    8:00 binary code

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

    Thank you very much for this DSA course very easy and simple way to learn

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

    This approach of problem solving is called
    "divide and conquer". As we are dividing our array into halves.
    Another examples of D&C :
    - finding GCM ( greatest common divisor )
    - merge sort and quick sort algorithms
    binary search will only work if array is sorted. This should be in mind.
    The same example of the video can be easily written by Recursion.
    binarySearch(int arr[],int item,int l, int r)
    {
    int n = sizeof(arr)/sizeof(arr[0]);
    int m = (l+r)/2;
    if (m < 0 || m> n-1){ return -1; }
    if (arr[m] == item){ return item; }
    else if(arr[m] > item) {
    return binarySearch(arr,item,l,m-1);
    }
    else{
    return binarySearch(arr,item,m+1,r);
    }
    return -1;
    }

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

      What is l and r representing?

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

      @@kushagra0347 l represents the left-most index of the half that is to be searched and r represents the right-most index of the half that is to be searched. Initially while calling the function, l is 0 and r is n-1.

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

      @@fundekaustubh Thanks Mate💯🙌🏻

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

      Good ❤️

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

      @@fundekaustubh can we assign first array index as '1' or it is necessary to assign it '0'.
      Here she use n but that mean that she is assigning first value as 1.

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

    Well done bhaiya
    We love you and always support you

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

      Tera aukat bhi nahi h Sharda jaise prestigious university me admission lene ka

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

      @@pep8221 good joke bro .... sharda prestigious h

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

      @@ashisharyan3028 yesss very much. Even more prestigious than Harvard.

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

      @@pep8221 lol bhai meri toh fir aukaat hi nhi h.....merese toh 12th pass hi nhi kiya hoga

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

      @@ashisharyan3028 koi baat nahi bhai. Agar sharda university me admission nahi hua tho tum koi aur university jaise ki Oxford, Harvard ya Princeton me admission lelena.

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

    Your pace and voice is so good, it helps to get understand the concept very easily. Thanks

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

    This video is well animated and explained nicely! please follow this order

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

    8:52 the value of e = n-1, because the indexing starts from 0.

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

      Yes even I noticed the same thing.. Kindly update if we are wrong.

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

      actually it could be either of the values, cuz vese b hamein exact mid point ki zarurat nhi hai. baad m to check krna hi hai ki key midpoint se bada hai ya chota hai.

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

      No...I think over here because as s=0 and e=n so when you will do (S+n)/2=(0+n)/2 will give exactly half of your array but if you do(0+n-1)/2 you will not get exactly the mid of the array.please think again.

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

      @@hemasingh5668 yeah that is true but there is really no need to find out the exact mid point ryt? Lets assume array 6 size ki hai. (0+n)/2 krte ho to mid point 3 index p ata hai. (0+n-1)/2 se mid point 2 index ata h. And in either of the cases u ll be checking whether your target element is before that index or after that index. N time complexity is also the same in both cases. So the answer ll be d same either way.

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

      gives same result either

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

    Everyone is first until you refresh 😂🔥

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

      Han..ekdom😂

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

      Tera aukat bhi nahi h Sharda jaise prestigious university me admission lene ka

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

      @@arunmaity461 Tera aukat bhi nahi h Sharda jaise prestigious university me admission lene ka

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

      @@pep8221 tum kon hote ho..mera aukad judge karne wala? Aur maine aisa kya comment kiya jisse tum mera aukad estimate karoge?

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

      @@pep8221 aur aisi arrogant stupid idiot ki tarah behave mat karo..isse tumhara khud ka hi respect girega dusro ke saamne..tumhare mata pita kya is tarike se tumhe logo ke saath behave karna sikhaya hai?

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

    one thing i want to add:
    mere jese slow learner ko jab koi kuch concept samjhaye or fir programme likhne k baad usi chiz ko dubara samjhaye pura
    no words for this
    thank you so much

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

    Watching From Pakistan
    Love this Channel

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

    I use Java but still this explanation was too helpful
    Btw no Nehas were harmed while making this video

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

    Thankyou so much for your efforts ❤️❤️ and urvi di apa bahoot jyada accha sikhate ho please apa hi sikhana ye pura course muze apaka sikhaya jyada accha samajha ata hai . Love you ❤️❤️❤️

  • @mr.techoorienter
    @mr.techoorienter 3 ปีที่แล้ว

    Aman bhaiya = indian elon musk in education..❤️🔥🔥🔥

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

    I always forget about hitting the like button nevertheless I love this series

  • @361-shashankgupta3
    @361-shashankgupta3 2 ปีที่แล้ว +7

    Binary Search works in sorted array only.
    We have to sort the array first in ascending or descending order if the array entered in unsorted .
    Linear Search is better for unsorted array

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

      why is that the end point is n and not n-1 when we keep the start point as 0?

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

    This is a best course of C++ and DSA

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

    Thank You So Much Apna College for this amazing lecture 😊

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

    After k iteration ,length of array=n/2^k-1
    As
    In 1st iteration length =n/2^0
    In 2nd iteration length =n/2^1
    So
    In k iteration length =n/2^k-1
    It is simple gm series

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

      Exactly

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

      1st iteration ke baad n/2 hoga kyuki phli baar jab function run hoga to (s + e)/2 se run hoga, so kth iteration n/2^k hoga

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

      Yess! Toh pehle n hi hain array size. First iteration ke baad n/(2^1) and so on!

  • @aryansharma-wf8sn
    @aryansharma-wf8sn 3 ปีที่แล้ว +4

    Urvi di aap hi baki lectures bhi lena you explain these concepts very easily 🤩😍

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

    Your teaching style and voice is quite good.

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

    linear and binary search bohot easy ....and MAM EASY TO TEACH C++...NICE

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

    Urvi di rocks man!!!🔥🔥🔥❤️

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

      Bhai madam ka pura name or insta account ho to do na , please 🙏🙏

    • @21ishansharma82
      @21ishansharma82 3 ปีที่แล้ว

      @@vishalprajapati1208 urvi goel!

  • @GURU-lz1iw
    @GURU-lz1iw 3 ปีที่แล้ว +7

    dd, ek baar dekhna... doubt tha...
    time complexity of binary search mein...
    after 3 interation length of array is n/2^3-1... so after k interation it should be n/2^k-1...
    so after calculation time complexity should be log2n with base 2...plz clear the doubt.... btw thanks for the course to every member... lots of love❤❤❤❤

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

      base is ignored while calculating complexity as log base 2 is same log base e / log base 2 and we ignore the coefficients of terms. Here log base 2 is ignored.

    • @K-EC-AmanKumar
      @K-EC-AmanKumar 2 ปีที่แล้ว

      constant to be ignored so K = log n + 1 would be same as K =log n

  • @nainika.s6572
    @nainika.s6572 3 ปีที่แล้ว

    Well done bhaiyah you are the best and your whole team is also best

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

    superb🔥🔥it is indeed best course

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

    Notes -
    Linear Search - {Time Complexity - O(n)} - 0:49
    Binary Search - Concept - 3:30
    Binary Search - Code - 8:00
    Binary Search - Time Complexity - O(logn base 2) - 11:32

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

      @@ThunderBladeZen Hum har jagah par hai 😁! Ashirwad bhava

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

      where is neha search ?

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

      @@singh_04
      Neha Search - Concept: Sabka Katega
      Neha Search - Time Complexity: 6 to 12 months
      Neha Search - Conclusion: ____________! (Fill in the blank)

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

      Bhai ye code glat h chal hi ni mera binary search wala

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

      @@manitsaharan5995 Correct hai Bhai! Ek baar phirse dekho kuch mistake ho rahi hogi apse

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

    @Apna college The length of array after k iterations would be n/2 power(k-1) (in the concept of finding time complexity of binary search)

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

    Sab samaj aa gaya now I am confident about c++

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

    Great... Kisi ne itna easily nai samjhaya
    Thank @apnacollege

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

    Awesome lecture, thanks ma'am❤😊

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

      0:47 agar nahi milega to minus 1 kyu karna hai return..?

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

    There is one mistake in last time complexity that after K iterations ,the length of the array becomes = n/2^(k-1)........(12:17)...
    I hope , I am right since you are a wonderful teacher and because of you I can find the mistake and can correct it.....

    • @jatinkumar-bd2nw
      @jatinkumar-bd2nw 3 ปีที่แล้ว

      You are right brother

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

      No the mistake is at first line, after first iteration length of the array becomes n/2 and not n

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

      there's no mistake at all. The array size starts from n and after the iterations start, it becomes n/2, n/3, n/4... n/2^k. Note here that k is a random number and not according to the pattern you are thinking which makes it (k-1). Let's say (k-1)=k'. In the video k' is the k. You can co relate this with principal of mathematical induction where we assume the expression to be true for any random k and not some k as per some pattern.
      And for those who are saying after first iteration array size should be n/2, that's true but the point is that we have to consider from the point before the iteration starts for calculation of time complexity in which case the size wil be n itself.
      So apparently there's absolutely no mistake in the video.

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

      @@bdbrightdiamond That's Correct...👍👍👍👍👍👍👍

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

      @@snehilsinha4689 you r right...
      But it should be n/2,n/4,n/8....

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

    These videos are really "awesome"

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

    unlike C, in C++ by default for every user input the line control shifts to the next line, unless it is an array and inline and equally spaced inputs can be taken.

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

    The time complexity of Binary search is not really O(logn ) because the array was not sorted . SO if i have to sort the array as well using Merge Sort then the time complexity becomes O(logn + nlogn) = O(logn) ... So if it's unsorted then time complexity is O(nlogn) .

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

    Didi afer kth iteration shouldn't it be n/(2^k-1)

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

      yeah..i too had the same doubt..

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

      @@nimisharaj8501 same here

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

      after the first iteration, it will be n/2.
      it will be n before that.
      so the formula is n/(2^iterations)

  • @Hot-Introduction
    @Hot-Introduction 3 ปีที่แล้ว

    Aman Bhaiya and team you are great

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

    i would like to point one specific error, lets say we putted one sorted array and key is same as the last value of array, then it will return -1 because we have initialsed last element e from n, it would be better if we initialise [e= n-1]. In the function defined 'binarysearch', we need to initialize the end from n-1 where n is the size of the arr. I hope this helps.

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

    After K iteration, the length of the array should be n/2^k-1

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

      Yes

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

      Yes

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

      th-cam.com/video/5FsIa4Mp3ho/w-d-xo.html

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

      Same doubt

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

      It doesn't matter. Its like subtracting infinity by 1
      So
      infinity - 1 = infinity
      So
      N/2^k-1 = N/2^k
      Because N is dominant and can be value equal to infinity

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

    Sir Please upload the notes it is going to be 1 week of this video being uploaded

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

      Can you please tell at 5:57, it isn't necessary that the user inputs the elements of array in ascending, so how can we solve it then?

    • @TonyStark-ct8xd
      @TonyStark-ct8xd 3 ปีที่แล้ว +2

      @@weasleygaming3 use c/c++ built in sort( ) function.

    • @0xatul
      @0xatul 3 ปีที่แล้ว

      @@weasleygaming3 Yes, It's necessar to have the inputs in ascending order, thats why it is called binary search. There are other algorithms for searching without a ascending order.

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

      u can sort it beforehand....sort function is available for that

    • @AbhishekSharma-wi2ry
      @AbhishekSharma-wi2ry 3 ปีที่แล้ว +1

      @@TonyStark-ct8xd by after sorting the array index of the elements will change then how would we get correct index
      It will index of the sorted array but we want index of the real array that's my doubt

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

    Thank u aman bhaiya and mam very useful video thank u ❤🖤

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

    Aman Bhaiya is taking education to the next level🙏🙏🙏

  • @VikasSingh-pw5iz
    @VikasSingh-pw5iz 3 ปีที่แล้ว +6

    Are ye didi konsi h, she explains really well. Thanks for the efforts

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

    Very Important condition for Binary search is that Array should be sorted But in your code there aren't any lines which shows that.if before searching we code for it then it will be better for unsorted input array also.

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

      hnn we can write a seperate function for that

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

      Because she already has taken sorted array from user.

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

    Hi apna college.
    Amazing video you have made here, full of learning.
    Please can you upload notes for this video??
    Regards

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

    It helped me a lot for my boards exam of computer

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

    please upload the notes...
    thank you for the lecture series

  • @barfy.man3624
    @barfy.man3624 3 ปีที่แล้ว +1

    Kya mast Kam krte ho maksood bhai

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

    Bhaiya please upload the notes ... Thank you so much for a great help bhaiya.

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

    Sir, it has been 8 months now, please upload the notes of this video. 😃

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

    Bandhubud aur budbak me apna school tha
    AUR yaha pe apna college😍❤❤

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

      Tera aukat bhi nahi h Sharda jaise prestigious university me admission lene ka

    • @me-oniichan
      @me-oniichan 3 ปีที่แล้ว +1

      @@pep8221 kahi bhi kuch bhi likh rha hai kya tu

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

      @@me-oniichan ye spam krra h pgl

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

      @@puneetchhabra2578 haan

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

    Bhaiya ads daal dete vids mein. Kam se kam kuch support toh milta hamaari taraf se. Thank you so much for this course 🙏🙏👍👍

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

    I think we need to write while loop like
    while(s

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

    you way of explaining things is awesome but just try to explain even more deeper because we are beginners

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

      🙂han na aksar cheezay uper sy he guzer jati hai

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

    12:11 --After k iteration,i think length of array becomes n/2^(k-1)🙄🙄🙄

  • @AK-ln2ko
    @AK-ln2ko ปีที่แล้ว

    Time complexity of binary search is O(log(base2)N)
    and for linear search is O(N)

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

    Very easy teaching method thanks maam

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

    When would the notes be uploaded?

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

    Please also make a video on logarithm. And also this course is just fantastic

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

      Bro if u dont know anything about log just learn basic or mid and then come back same for derivation and integration

  • @brucewayne-mh7ul
    @brucewayne-mh7ul 3 ปีที่แล้ว

    Gazab animation bhai 😁

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

    Bhaisaab
    Kya samjha diya
    Neha rocks

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

    You forgot to mention one thing though while linear search can be used on unsorted data,binary search can only be used on sorted data

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

    Bhaiya Everyday I am waiting for you to upload the video...Bhaiya the link in the notes of last video is not opening

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

    too good yaar seriously...

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

    Worth it!

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

    Sir please provide the notes of this lecture sir. Thankyou. And your course is amazing.

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

      Re ghanta amazing vai sala wise parata hai jaise ki aj hi khatam karna hai pura syllabus ☹️ thoda smjha samjha ka padya na
      College mai vi eisa padata hai or yeh vu dise padata hai 😑kahase samjhe patahi nahi chalta hai

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

      @@rakeshpatra7800 Check the time of my comment. Its more than 1 year now. Ab isse kahi guna behtr courses youtube pe hai.

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

    didi saying "thik hai" is op !!!

  • @AkshdeepSingh-ef4tw
    @AkshdeepSingh-ef4tw 3 ปีที่แล้ว

    awesome .......................................

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

    its is just amazing

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

    end should be set as n-1 since we have 0 based indexing in c++

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

    Yes , neha is back !

  • @SauravKumar-yo8hb
    @SauravKumar-yo8hb 3 ปีที่แล้ว +1

    great content

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

    Very Useful
    I Liked

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

    Pls upload notes of this video it’s been 3 months now🙏🏼

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

    Sir please upload notes of this video.

  • @user-yi1wy4xs9v
    @user-yi1wy4xs9v 6 หลายเดือนก่อน

    Great 👍

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

    to implement binary search the given must me sorted
    sorting will take O(nlogn) if not sorted it'll be a bottleneck
    where as , if the supplied input is sorted ill be O(logn) ideal case.

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

    That "Theek Hai" hits on another level also kya awesome bandi ha yrr as in your voice is very sweat. Buddy Loved the way you teach xD xD !!

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

    Please, bhaiya upload the notes ASAP. We are counting on you

  • @AryanSingh-xx8lc
    @AryanSingh-xx8lc ปีที่แล้ว

    Ma'am ki awaz se pyaar ho gya

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

    it helped me a lot

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

    Sir notes??

    • @kunalakriti
      @kunalakriti 5 วันที่ผ่านมา

      pata nhi

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

    After 1st iteration, length of array should be n/2 ..
    That's why we can conclude,
    After k iteration, lengh of array would be n/(2**k)

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

    best explanation

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

    Thankyou 🙏

  • @AryanKohli-hkscx
    @AryanKohli-hkscx 3 ปีที่แล้ว +6

    12:11 it should be n/(2^(k-1))

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

      Yp i was thinking sane

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

    Why do we even need to calculate Time Complexity?
    Is it asked in some interviews? Or is it just for our own understanding and for understanding the call stack?

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

      We find time complexity to make our program fast

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

      Bhai ek baar competitive websites use karke dekh sara jawab mill jaeyga, time complexity kyu zarure hey,
      Bohot jarure hey bhai!!!!!!!

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

      @@ganeshmurmu2338 link bhej tu aur bta teko aisa kyu lagta ?

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

      @@sayantaniguha8519 dekho, simplest bhasa mey boley to, competitive coding websites mey difficult questions mey O(n) time complexity wala solution banana parta hey isley time complexity is important

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

      Agar samjh nai aya to ek watsapp group banatey hey? Or if yo don't want to share number than telegram group, accha discussion, doubt solving ho payega.....
      What do you think?

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

    Awesome teaching didi🤗

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

    Please upload the notes of this video and thank you for this course..

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

    In C I was taught that the size can't be declared during runtime . Is it allowed in C++ ?

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

    now we have 3 different ways of denoting an array: while in function-array[], while declaring array[n] and while calling in linearSearch- just array. What is logic behind this? Why dont we need to specify size of array while declaring