-
Practice>Python>Collections>Piling Up!hackerrank.com 2019. 2. 28. 13:13728x90
Piling Up!
Problem link : https://www.hackerrank.com/challenges/piling-up/problemDifficulty : MediumTip
- Simplify the rule of problem
- If we assume s[] is a all of sideLength, s[0] or s[-1] should be biggest number in s
- This is a key to solve problem
- To access easily to head and tail, deque is good to use
Solution
728x90'hackerrank.com' 카테고리의 다른 글
Practice>Python>Itertools>Maximize It! (0) 2019.03.07 Practice>Python>Itertools>Iterables and Iterators (0) 2019.03.04 Practice>Python>Sets>Set Mutations (0) 2019.02.27 Practice>Python>Sets>Set .symmetric_difference() Operation (0) 2019.02.27 Practice>Python>Sets>Set .difference() Operation (0) 2019.02.27