Skip to content

Latest commit

 

History

History
50 lines (28 loc) · 3.55 KB

sliding-window.md

File metadata and controls

50 lines (28 loc) · 3.55 KB

Sliding Window LeetCode Problems

A collection of LeetCode problems solved using Sliding Window pattern techniques, explanations, and complexity analysis.

Problems

Easy

# Problem Language Time Space Explanation
2144 Minimum Cost of Buying Candies With Discount Kotlin O(n) O(1) Explanation

| 2481 | Minimum Cuts to Divide a Circle | Python | O(n) | O(1) | Explanation |

| 2540 | Minimum Common Value | C++ | O(n) | O(1) | Explanation |

Medium

# Problem Language Time Space Explanation
3 Longest Substring Without Repeating Characters Python O(n) O(1) Explanation

| 433 | Minimum Genetic Mutation | JavaScript | O(n) | O(1) | Explanation |

| 1477 | Find Two Non-overlapping Sub-arrays Each With Target Sum | JavaScript | O(n) | O(1) | Explanation |

| 1658 | Minimum Operations to Reduce X to Zero | JavaScript | O(n) | O(1) | Explanation |

| 2280 | Minimum Lines to Represent a Line Chart | Python | O(n) | O(1) | Explanation |

| 2568 | Minimum Impossible OR | Python | O(n) | O(1) | Explanation |

| 2627 | Debounce | TypeScript | O(n) | O(1) | Explanation |

| 3568 | Minimum Moves to Clean the Classroom | C++ | O(n) | O(1) | Explanation |

Hard

# Problem Language Time Space Explanation
30 Substring with Concatenation of All Words Python O(n) O(1) Explanation

| 76 | Minimum Window Substring | PHP | O(n) | O(1) | Explanation |

| 239 | Sliding Window Maximum | Python | O(n) | O(1) | Explanation |

| 480 | Sliding Window Median | Python | O(n) | O(1) | Explanation |

| 773 | Sliding Puzzle | Python | O(n) | O(1) | Explanation |