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
相关文章
相关标签/搜索