Sliding Window

less than 1 minute read

Problems LeetCode 3. Longest Substring Without Repeating Characters LeetCode 209. Minimum Size Subarray Sum LeetCode 15. 3Sum LeetCode 30. Substring...

LeetCode 3.

less than 1 minute read

Question ``` Given a string s, find the length of the longest substring without repeating characters.

LeetCode 209.

1 minute read

Question ``` Given an array of positive integers nums and a positive integer target, return the minimal length of a subarray whose sum is greater than or eq...

LeetCode 15.

less than 1 minute read

```java class Solution { public List<List> threeSum(int[] nums) { Arrays.sort(nums); //nlogn List<List> result = new ArrayLis...

LeetCode 11.

1 minute read

Question ``` Given a 1-indexed array of integers numbers that is already sorted in non-decreasing order, find two numbers such that they add up to a specifi...