From 2647ec25a74ad1ddda7bdc35d94284b72f5acb4d Mon Sep 17 00:00:00 2001 From: Saurav Kumar Date: Sun, 27 Apr 2025 23:30:21 +0530 Subject: [PATCH] Fix broken link for master sliding window reference --- apps/website/contents/algorithms/array.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/website/contents/algorithms/array.md b/apps/website/contents/algorithms/array.md index c65ad374..e63e3673 100644 --- a/apps/website/contents/algorithms/array.md +++ b/apps/website/contents/algorithms/array.md @@ -82,7 +82,7 @@ Note that because both arrays and strings are sequences (a string is an array of ### Sliding window -Master the [sliding window technique](https://discuss.leetcode.com/topic/30941/here-is-a-10-line-template-that-can-solve-most-substring-problems) that applies to many subarray/substring problems. In a sliding window, the two pointers usually move in the same direction will never overtake each other. This ensures that each value is only visited at most twice and the time complexity is still O(n). Examples: [Longest Substring Without Repeating Characters](https://leetcode.com/problems/longest-substring-without-repeating-characters/), [Minimum Size Subarray Sum](https://leetcode.com/problems/minimum-size-subarray-sum/), [Minimum Window Substring](https://leetcode.com/problems/minimum-window-substring/) +Master the [sliding window technique](https://leetcode.com/problems/minimum-window-substring/solutions/26808/here-is-a-10-line-template-that-can-solve-most-substring-problems/) that applies to many subarray/substring problems. In a sliding window, the two pointers usually move in the same direction will never overtake each other. This ensures that each value is only visited at most twice and the time complexity is still O(n). Examples: [Longest Substring Without Repeating Characters](https://leetcode.com/problems/longest-substring-without-repeating-characters/), [Minimum Size Subarray Sum](https://leetcode.com/problems/minimum-size-subarray-sum/), [Minimum Window Substring](https://leetcode.com/problems/minimum-window-substring/) ### Two pointers