Queue using Linked List
Difficulty: Easy
Acceptance: %
Points: 20.00
Implement a Queue using Linked List.
A Query Q is of 2 Types
- 1 x (a query of this type means pushing 'x' into the queue)
- 2 (a query of this type means to pop an element from the queue and print the popped element)
Expected Time Complexity: O(1).
Expected Auxiliary Space: O(1).
Constraints: - 1 <= Q <= 100
- 1 <= x <= 100
Companies: Microsoft Apple Walmart
Please log in to access the Submissions tab, where you can review your progress and explore code submissions from other participants.
Please log in to access the Solution tab and view detailed answers and explanations.
Please log in to access the Discussion tab and join conversations with other participants.