hackerrank.com

Practice>Python>Collections>Piling Up!

건이두 2019. 2. 28. 13:13
728x90

hackerrank.com

Piling Up!

Problem link : https://www.hackerrank.com/challenges/piling-up/problem
Difficulty : Medium

Tip

  • 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