Second Largest Element in Array | Sample Video for DSA Foundation Course | GeeksforGeeks

Поділитися
Вставка
  • Опубліковано 14 гру 2020
  • GeeksforGeeks presents you the Sample Video for DSA Foundation Course.
    DS and Algo Foundation Course Link : practice.geeksforgeeks.org/co...
    All courses :
    practice.geeksforgeeks.org/co...
    Please Like, Comment and Share the Video among your friends.
    Install our Android App:
    play.google.com/store/apps/de...
    If you wish, translate into the local language and help us reach millions of other geeks:
    ua-cam.com/users/timedtext_cs_p...
    Follow us on Facebook:
    / gfgvideos
    And Twitter:
    / gfgvideos
    Also, Subscribe if you haven't already! :)

КОМЕНТАРІ • 27

  • @srinivasgangaraju2998
    @srinivasgangaraju2998 Рік тому +6

    It is right time you bring in some visual representation of these dry runs / explanations. Lot of people in the market are doing this. This actually helps in better understanding the problem.
    I have your course but the calculation needs to be in the head. Most of the videos should be watched twice to get a clear understanding

  • @kameshnayak8677
    @kameshnayak8677 3 роки тому +10

    Sandeep Sir, You are the one of the best teacher. Love you sir.

  • @coefficient1359
    @coefficient1359 3 роки тому +15

    Why is the dsa self placed course recommended for third and final year students? Will it benefit for second or first year students, if they take it?

  • @warriorSvb
    @warriorSvb 3 роки тому +2

    Amazing explanation

  • @ayushksingh
    @ayushksingh 3 роки тому +2

    Good Explanation

  • @rajbannasa7662
    @rajbannasa7662 2 роки тому

    Thank you so much sir ❤️

  • @buddhadebgarai6659
    @buddhadebgarai6659 3 роки тому +2

    In secondlargest function , when 2nd time we check 20 (whose index is 3 ) , 1st if not going to false.

  • @adityarawat9338
    @adityarawat9338 Рік тому +3

    I am doing the same thing but 150 test cases passed

  • @meghanak942
    @meghanak942 3 роки тому +3

    Can we directly determine it by considering difference right ...I mean after finding the max element

    • @stevealain103
      @stevealain103 3 роки тому +1

      I Think that it will be the same thing. You will need to create another for loop.

  • @i.ttechmod9907
    @i.ttechmod9907 2 роки тому +3

    What is difference between Dsa and Dsa Foundation course (please help me)

  • @qa3596
    @qa3596 2 роки тому

    Amazing video

  • @suryasvibe1941
    @suryasvibe1941 Рік тому

    Thank you sir 💕💗

  • @subhamagarwal476
    @subhamagarwal476 2 роки тому

    Boom boom ...!! Magic🔥🔥🔥🔥💓💓💓💓

  • @chiraagb
    @chiraagb Рік тому

    Here the efficient code doesnt work for the array having all the same elements.

  • @siddheshb.kukade4685
    @siddheshb.kukade4685 Рік тому +9

    There is mistake in program return arr[res] instead of res to get the second largest element otherwise it will just return the index not the actual element

    • @brp3522
      @brp3522 Рік тому +1

      He is actually writing code to get the index so he is right here

    • @shahidchaudhary52
      @shahidchaudhary52 7 місяців тому

      yep hes only taking about index from the begining ...so its right

  • @mohdsaif7834
    @mohdsaif7834 3 роки тому +2

    1st viewer

  • @evelynsummer4020
    @evelynsummer4020 2 роки тому +7

    I'm struggling to understand your accent too thick

  • @zaidiqbal2638
    @zaidiqbal2638 Рік тому

    Hindi mein samjhaya Karo sir , waise hi DSA dimaag kharab krke rakhe hai 🥺

  • @mytrolls5866
    @mytrolls5866 8 місяців тому +1

    worst explanation

  • @shivanshsethmusic
    @shivanshsethmusic 5 місяців тому

    bad explanation