# Monotonic Queue DSA Problems

> 18 Monotonic Queue coding problems for placements and interviews, sorted easiest first, with hints and company tags. Free practice on InternHack.

Canonical: https://www.internhack.in/learn/dsa/monotonic-queue
Last updated: 2026-11-28

18 monotonic queue problems for coding interviews and campus placements, with hints and company tags. Below are all 18: 0 easy, 6 medium and 12 hard. Practise them free on InternHack and track what you have solved.

## Monotonic Queue problems, easiest first

1. [Continuous Subarrays](https://www.internhack.in/learn/dsa/problem/continuous-subarrays) (Medium)
2. [Count Partitions With Max-Min Difference at Most K](https://www.internhack.in/learn/dsa/problem/count-partitions-with-max-min-difference-at-most-k) (Medium)
3. [Count Prime-Gap Balanced Subarrays](https://www.internhack.in/learn/dsa/problem/count-prime-gap-balanced-subarrays) (Medium)
4. [Jump Game VI](https://www.internhack.in/learn/dsa/problem/jump-game-vi) (Medium)
5. [Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit](https://www.internhack.in/learn/dsa/problem/longest-continuous-subarray-with-absolute-diff-less-than-or-equal-to-limit) (Medium)
6. [Maximum Sum Circular Subarray](https://www.internhack.in/learn/dsa/problem/maximum-sum-circular-subarray) (Medium)
7. [Constrained Subsequence Sum](https://www.internhack.in/learn/dsa/problem/constrained-subsequence-sum) (Hard)
8. [Count Non-Decreasing Subarrays After K Operations](https://www.internhack.in/learn/dsa/problem/count-non-decreasing-subarrays-after-k-operations) (Hard)
9. [Count Subarrays With Fixed Bounds](https://www.internhack.in/learn/dsa/problem/count-subarrays-with-fixed-bounds) (Hard)
10. [Delivering Boxes from Storage to Ports](https://www.internhack.in/learn/dsa/problem/delivering-boxes-from-storage-to-ports) (Hard)
11. [Find Maximum Non-decreasing Array Length](https://www.internhack.in/learn/dsa/problem/find-maximum-non-decreasing-array-length) (Hard)
12. [K Empty Slots](https://www.internhack.in/learn/dsa/problem/k-empty-slots) (Hard)
13. [Longest Increasing Subsequence II](https://www.internhack.in/learn/dsa/problem/longest-increasing-subsequence-ii) (Hard)
14. [Max Value of Equation](https://www.internhack.in/learn/dsa/problem/max-value-of-equation) (Hard)
15. [Maximum Number of Robots Within Budget](https://www.internhack.in/learn/dsa/problem/maximum-number-of-robots-within-budget) (Hard)
16. [Maximum Number of Tasks You Can Assign](https://www.internhack.in/learn/dsa/problem/maximum-number-of-tasks-you-can-assign) (Hard)
17. [Shortest Subarray with Sum at Least K](https://www.internhack.in/learn/dsa/problem/shortest-subarray-with-sum-at-least-k) (Hard)
18. [Sliding Window Maximum](https://www.internhack.in/learn/dsa/problem/sliding-window-maximum) (Hard)

## Companies that ask monotonic queue problems

- [Google](https://www.internhack.in/learn/dsa/companies/google): 16 of these problems
- [Amazon](https://www.internhack.in/learn/dsa/companies/amazon): 10 of these problems
- [Microsoft](https://www.internhack.in/learn/dsa/companies/microsoft): 9 of these problems
- [Meta](https://www.internhack.in/learn/dsa/companies/meta): 9 of these problems
- [Bloomberg](https://www.internhack.in/learn/dsa/companies/bloomberg): 6 of these problems
- [Uber](https://www.internhack.in/learn/dsa/companies/uber): 4 of these problems
- [Goldman Sachs](https://www.internhack.in/learn/dsa/companies/goldman-sachs): 3 of these problems
- [Nutanix](https://www.internhack.in/learn/dsa/companies/nutanix): 2 of these problems
- [Medianet](https://www.internhack.in/learn/dsa/companies/medianet): 2 of these problems
- [Tiktok](https://www.internhack.in/learn/dsa/companies/tiktok): 2 of these problems
- [Infosys](https://www.internhack.in/learn/dsa/companies/infosys): 2 of these problems
- [Makemytrip](https://www.internhack.in/learn/dsa/companies/makemytrip): 2 of these problems

## Before your interview

Most resumes are filtered by software before a recruiter reads them. [Check your resume ATS score free](https://www.internhack.in/ats-score/try), no signup needed.

## Other DSA topics

- [Array](https://www.internhack.in/learn/dsa/array) (1869)
- [String](https://www.internhack.in/learn/dsa/string) (775)
- [Hash Table](https://www.internhack.in/learn/dsa/hash-table) (708)
- [Math](https://www.internhack.in/learn/dsa/math) (564)
- [Dynamic Programming](https://www.internhack.in/learn/dsa/dynamic-programming) (557)
- [Sorting](https://www.internhack.in/learn/dsa/sorting) (464)
- [Greedy](https://www.internhack.in/learn/dsa/greedy) (407)
- [Depth-First Search](https://www.internhack.in/learn/dsa/depth-first-search) (314)
- [Binary Search](https://www.internhack.in/learn/dsa/binary-search) (298)
- [Matrix](https://www.internhack.in/learn/dsa/matrix) (246)
- [Breadth-First Search](https://www.internhack.in/learn/dsa/breadth-first-search) (245)
- [Bit Manipulation](https://www.internhack.in/learn/dsa/bit-manipulation) (238)
- [Tree](https://www.internhack.in/learn/dsa/tree) (235)
- [Two Pointers](https://www.internhack.in/learn/dsa/two-pointers) (217)
- [Prefix Sum](https://www.internhack.in/learn/dsa/prefix-sum) (204)
- [Database](https://www.internhack.in/learn/dsa/database) (197)
- [Heap (Priority Queue)](https://www.internhack.in/learn/dsa/heap-priority-queue) (196)
- [Simulation](https://www.internhack.in/learn/dsa/simulation) (177)
- [Counting](https://www.internhack.in/learn/dsa/counting) (174)
- [Binary Tree](https://www.internhack.in/learn/dsa/binary-tree) (169)

## Related

- [Home](https://www.internhack.in/)
- [Learn](https://www.internhack.in/learn)
- [DSA](https://www.internhack.in/learn/dsa)
