Apple interview question

1) Implement Linked list in hardware 2) LIFO using queues only

Interview Answers

Anonymous

30 Apr 2019

2. You can implement LIFO using a combination of queue.push_back +queue.pop_back OR queue.push_front+queue.pop_front

Anonymous

30 Apr 2019

2. You can implement LIFO using a combination of queue.push_back +queue.pop_back OR queue.push_front+queue.pop_front