Articles in this series
Problem Statement Given a string, find the length of the longest substring, which has all distinct characters. Example: Input:...
Understanding the Problem This problem uses a "sliding window" strategy. Given an array of binary, what is the longest length of consecutive "1"s we...
Leetcode Arrays · Problem Statement Given an array of non-decreasing numbers, return a sorted, non-increasing array of each number's squared value in...
O(n) and O(1) solutions · The Problem: Given an array of integers, and a given target, return two unique indices of numbers that add up to the given...