Reverse a queue using recursion

1 min read

https://practice.geeksforgeeks.org/problems/queue-reversal/1

LRU cache implementation
Reverse the first K elements of a queue