TongTong Shi's Blog
A Playground to Share My Knowledge
Peeking Iterator Peeking Iterator
LeetCode Q 284 - Peeking IteratorGiven an Iterator class interface with methods: next() and hasNext(), design and implem
2019-05-21 Tong Shi
Find Median from Data Stream Find Median from Data Stream
LeetCode Q 295 - Find Median from Data StreamMedian is the middle value in an ordered integer list. If the size of the l
2019-05-21 Tong Shi
Implement Queue using Stacks Implement Queue using Stacks
LeetCode Q 232 - Implement Queue using StacksImplement the following operations of a queue using stacks. push(x) – Push
2019-05-20 Tong Shi
Implement Stack using Queues Implement Stack using Queues
LeetCode Q 225 - Implement Stack using QueuesImplement the following operations of a stack using queues. push(x) – Push
2019-05-20 Tong Shi
Min Stack Min Stack
LeetCode Q 155 - Min StackDesign a stack that supports push, pop, top, and retrieving the minimum element in constant ti
2019-05-20 Tong Shi
Zigzag Iterator II Zigzag Iterator II
LintCode Q 540 - Zigzag Iterator IIFollow up Zigzag Iterator: What if you are given k 1d vectors? How well can your code
2019-05-17 Tong Shi
36 / 79