Piling Up! | HackerRank | Python | Collections | Deque
HTML-код
- Опубликовано: 11 сен 2024
- This video is about Piling Up! problem from HackerRank, here we have to apply deque from collections module.
Problem:www.hackerrank...
Sample code: www.coderscart...
For 1 : 1 Tutoring
WhatsApp contact : 7278222619
mail: jaiswalsatya93@gmail.com
You can support via UPI : sattujaiswal@okhdfcbank
Follow us on:
Whatsapp:
chat.whatsapp....
Facebook:
/ 779620502848988
/ codingcart
Linkedin:
/ satyendra-jaiswal-9035...
/ codingcart
Instagram:
/ codingcart
#HackerRank #Python #Collections
hi! could you please explain what the lp variable is for? (lp=-1) thanks again for creating these videos!
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😊
@@codingcart thanks for clarifying!
@@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
@@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!
Bhai u are the best
Thank u very much
U r simply great... explaining the program clearly in the way which beginners can understood easily...tq so much
Thank you so much sir most awaited problem :)
Most welcome
Waiting for this ❤️😍
enjoy and keep learning :)
Nice explanation 👌
Thank you 🙂
you haven't done any checks for the constraints defined in the problem
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
3:54 But you can use 4, 4, 3, 3, 2, 1 ?
Sir, can you please make a videos on classes module from hackerrank please sir. :)
stay tuned you will be notified.
hloo as the list contains the number of elements entered by the user ie" n ' but you didnt took any loop for that why?
Coz here we are taking the input as a string and then mapping it to int
what is lp = -1 ........can u explain here?
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😊
Yupp.....i realised that
Btw thanku
Thankyou
Welcome
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-
why flag are used i cant understand
You can check the comment I have pinned..