Use stack (LIFO) to simulate queue (FIFO)

原創轉載請註明出處:http://agilestyle.iteye.com/blog/2360962   Solution 1. Using 2 stacks 1.1. One stack to accept incoming values in FILO manner 1.2. The other stack to reverse the values in first stack, so LI
相關文章
相關標籤/搜索