Piling Up! | HackerRank | Python | Collections | Deque

Поделиться
HTML-код
  • Опубликовано: 2 дек 2024

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

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

    hi! could you please explain what the lp variable is for? (lp=-1) thanks again for creating these videos!

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

      Hi Danielle,
      Initially I have declared lp for assigning the latest picked value but this was taken care by "latest" variable in while loop so it was unused.
      Hope this helps😊

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

      @@codingcart thanks for clarifying!

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

      @@ddaanniieellllee You can also watch our latest videos on Tree implementation using Python.
      ruclips.net/video/-xJvpnenx6Y/видео.html
      ruclips.net/video/3ekQpwvgTR8/видео.html
      ruclips.net/video/z0Ho8nMNlAM/видео.html
      ruclips.net/video/GetFKtW_byE/видео.html
      ruclips.net/video/oEbkT4qSibQ/видео.html
      ruclips.net/video/EeCFKDXBUFo/видео.html

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

      @@codingcart i'm currently a begginner learning python so i'll definitely be watching more of your videos as i learn more and do more problems! thanks!

  • @VishalSharma-jx9in
    @VishalSharma-jx9in 3 года назад +1

    Bhai u are the best
    Thank u very much

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

    Thankyou

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

    Thank you so much sir most awaited problem :)

  • @AbhishekKumar-ob7vh
    @AbhishekKumar-ob7vh 4 года назад +2

    Nice explanation 👌

  • @prasad6700
    @prasad6700 3 года назад +1

    why flag are used i cant understand

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

      You can check the comment I have pinned..

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

    U r simply great... explaining the program clearly in the way which beginners can understood easily...tq so much

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

    Waiting for this ❤️😍

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

      enjoy and keep learning :)

  • @akshaypatil9663
    @akshaypatil9663 9 месяцев назад

    you haven't done any checks for the constraints defined in the problem

  • @Sumitsingh-ey5zb
    @Sumitsingh-ey5zb 4 года назад +1

    what is lp = -1 ........can u explain here?

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

      Hi Sumit,
      Initially I have declared lp for assigning the latest picked value but this was taken care by "latest" variable in while loop so it was unused.
      Hope this helps😊

    • @Sumitsingh-ey5zb
      @Sumitsingh-ey5zb 4 года назад

      Yupp.....i realised that

    • @Sumitsingh-ey5zb
      @Sumitsingh-ey5zb 4 года назад

      Btw thanku

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

    hloo as the list contains the number of elements entered by the user ie" n ' but you didnt took any loop for that why?

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

      Coz here we are taking the input as a string and then mapping it to int

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

    3:54 But you can use 4, 4, 3, 3, 2, 1 ?

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

    Why did you use latest value
    When every value piles up when it is less than csv and then latest value would surely less than csv . But when i did the program without latest but it didn't get the answer.u could have explained it moee

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

    i am getting this error for this program
    Traceback (most recent call last):
    File "Solution.py", line 7, in
    l=list(map(int,input().split()))
    ValueError: invalid literal for int() with base 10: '100{-truncated-

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

    Sir, can you please make a videos on classes module from hackerrank please sir. :)

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

      stay tuned you will be notified.