Question d’entretien chez J.P. Morgan

Given a Queue and an integer K, reverse the first K elements in the Queue.

Réponse à la question d'entretien

Utilisateur anonyme

1 mars 2021

Wrote the algorithm to solve this using a stack. It took some time to implement the same.