Queue and Deque coding problems

Queues and deques power level-order processing, sliding window maximums and simulation problems. Practise using the right end at the right time.

16 problems: 9 easy, 7 medium, 0 hard. Free to read; a free account solves them and earns XP and Aura.

  1. Duplicate Element RemoverPractice · +10 XPeasy
  2. Find the First Negative NumberPractice · +10 XPeasy
  3. First Unique CharacterPractice · +10 XPeasy
  4. Print Elements with Even IndexPractice · +10 XPeasy
  5. Print Queue ContentsPractice · +10 XPeasy
  6. Process First In First OutPractice · +10 XPeasy
  7. Queue ReverserPractice · +10 XPeasy
  8. Reverse First K ElementsPractice · +10 XPeasy
  9. Sequence ReverserPractice · +10 XPeasy
  10. Balanced Parentheses SubsequencePractice · +20 XPmedium
  11. Find Minimums in Sliding WindowsPractice · +20 XPmedium
  12. Largest Element in PrefixPractice · +20 XPmedium
  13. Longest Prefix With Maximum FrequencyPractice · +20 XPmedium
  14. Maximum Subarray Sum with Fixed LengthPractice · +20 XPmedium
  15. Next Greater Element in a Cyclic ArrayPractice · +20 XPmedium
  16. Sliding Window MinimumPractice · +20 XPmedium