Showing 3 of 88 questions
Find the length of the longest substring within a given string that contains no repeating characters. The substring must be contiguous.
#1. Longest Substring Without Repeating Characters
Given an array of integers, find the number of subarrays that contain exactly K distinct integers. A subarray is a contiguous part of the array.
#2. Subarrays with K Different Integers
Given an array representing the height of bars, calculate how much water can be trapped between them after rain. Think about finding the maximum height to the left and right of each bar.
#3. Trapping Rain Water