[Implement Stack using Queues]
https://leetcode.com/problems/implement-stack-using-queues/
[Implement Queue using Stacks]
https://leetcode.com/problems/implement-queue-using-stacks/
stack, queue를 2개씩 만들어서, 하나의 stack or queue에 pop()할 item을 하나씩 유지
[Simplify Path]
https://leetcode.com/problems/simplify-path/
stack
Python "///".split("/") = ['','','',''] 과 같이 리턴
'컴퓨터공학 > Program Solving' 카테고리의 다른 글
[Leetcode] 160302 (0) | 2016.03.02 |
---|---|
[Leetcode] 160301 (0) | 2016.03.02 |
[leetcode]160225 (0) | 2016.02.25 |
[leetcode.com] 160224 (0) | 2016.02.24 |
[leetcode.com] 160223 (0) | 2016.02.23 |