Fundamentals/Stack vs Queue - LIFO vs FIFO
← PrevNext →
Given an array of values, return two arrays: the order they would come out of a stack (LIFO) and the order they would come out of a queue (FIFO).