Array Second Largest Element in Python || Lesson 19 || Python Placements || Learning Monkey ||

Поділитися
Вставка
  • Опубліковано 1 лют 2025

КОМЕНТАРІ • 16

  • @PrabaKaranB-
    @PrabaKaranB- 8 місяців тому

    🎉❤ valuable sir

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

    try this approch
    def solve(self, A):
    Max = 0
    for i in range(len(A)):
    if A[i] > Max :
    Max = A[i]
    Smax = -1
    for i in range(len(A)):
    if A[i] != Max and A[i] > Smax:
    Smax = A[i]
    return Smax

    • @LearningMonkey
      @LearningMonkey  7 місяців тому +1

      Thank you for sharing
      It may help some one

  • @btsworld5984
    @btsworld5984 6 місяців тому

    I have doubt sir,
    After converting list to set ...its displaying ordered unique elements ..then why to again sort them

  • @btsworld5984
    @btsworld5984 6 місяців тому

    Really helpful tricks

  • @AbinBabu5
    @AbinBabu5 3 роки тому

    Helpful. Thanks!

  • @KishorKumar-re2rs
    @KishorKumar-re2rs 3 роки тому

    Please make a video on the same concept using map function

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

    love u my man

  • @JayanthJuturi
    @JayanthJuturi 10 місяців тому

    this question is asked in wipro python sr developer interveiw
    thanks

  • @TradersHub21
    @TradersHub21 3 роки тому

    Thanks a lot!

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

    these code is not working