- https://leetcode.com/problems/two-sum/
- https://leetcode.com/problems/best-time-to-buy-and-sell-stock/description/
- https://leetcode.com/problems/maximum-subarray/
- https://leetcode.com/problems/product-of-array-except-self/description/
- https://leetcode.com/problems/merge-intervals/description/
- https://leetcode.com/problems/3sum/description/
- https://leetcode.com/problems/valid-palindrome/description/
- https://leetcode.com/problems/minimum-window-substring/description/
- https://leetcode.com/problems/longest-substring-without-repeating-characters/description/
- https://leetcode.com/problems/group-anagrams/
- https://leetcode.com/problems/valid-anagram/description/
- https://leetcode.com/problems/flipping-an-image/description/
- https://leetcode.com/problems/rotate-image/description/
- https://leetcode.com/problems/intersection-of-two-arrays-ii/description/
- https://leetcode.com/problems/subarray-sum-equals-k/description/
- https://leetcode.com/problems/first-unique-character-in-a-string/description/
- https://leetcode.com/problems/happy-number/description/
- https://leetcode.com/problems/top-k-frequent-elements/description/
The sliding window technique is effective when all elements in the array are non-negative because the sum of the window moves monotonically in one direction as the window expands or shrinks. However, if the array contains negative numbers, the sum of the current window can increase, decrease, or oscillate unpredictably. This behavior makes it impossible to determine whether to shrink or expand the window deterministically.
- https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters/description/
- https://leetcode.com/problems/minimum-size-subarray-sum/description/
- https://leetcode.com/problems/sliding-window-maximum/description/
- https://leetcode.com/problems/permutation-in-string/
- https://leetcode.com/problems/longest-repeating-character-replacement/description/
- https://leetcode.com/problems/valid-palindrome/
- https://leetcode.com/problems/longest-palindromic-substring/
- https://leetcode.com/problems/3sum/
- https://leetcode.com/problems/reverse-words-in-a-string/
- https://leetcode.com/problems/meeting-rooms-ii/description/
- https://leetcode.com/problems/remove-duplicates-from-sorted-array/description/
- https://leetcode.com/problems/search-in-rotated-sorted-array/description/
- https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/description/
- https://leetcode.com/problems/median-of-two-sorted-arrays/description/
- https://leetcode.com/problems/search-a-2d-matrix/description/
- https://leetcode.com/problems/kth-smallest-element-in-a-bst/description/
- https://leetcode.com/problems/validate-binary-search-tree/description/
- https://leetcode.com/problems/maximum-depth-of-binary-tree/description/
- https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-tree/description/
- https://leetcode.com/problems/serialize-and-deserialize-binary-tree/description/
- https://leetcode.com/problems/path-sum/description/
- https://leetcode.com/problems/binary-tree-zigzag-level-order-traversal/
- https://leetcode.com/problems/letter-combinations-of-a-phone-number/description/
- https://leetcode.com/problems/permutations/
- https://leetcode.com/problems/subsets/
- https://leetcode.com/problems/word-search/
- https://leetcode.com/problems/n-queens/
- https://leetcode.com/problems/climbing-stairs/description/
- https://leetcode.com/problems/decode-ways/description/
- https://leetcode.com/problems/coin-change/
- https://leetcode.com/problems/longest-increasing-subsequence/
- https://leetcode.com/problems/word-break/description/
- https://leetcode.com/problems/house-robber/description/
- https://leetcode.com/problems/unique-paths/
- https://leetcode.com/problems/edit-distance/
- https://leetcode.com/problems/number-of-islands/
- https://leetcode.com/problems/clone-graph/description/
- https://leetcode.com/problems/course-schedule/
- https://leetcode.com/problems/word-ladder/
- https://leetcode.com/problems/minimum-height-trees/
- https://leetcode.com/problems/number-of-connected-components-in-an-undirected-graph/description/
- https://leetcode.com/problems/alien-dictionary/description/
- https://leetcode.com/problems/graph-valid-tree/description/