You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param {number} k Limit of distinct characters in substring.
* @return {number} Length of substring with at most k distinct characters.
* @summary Longest Substring With At Most K Distinct Characters {@link https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters/}
* @description Given a string, remove m
* Space O(k) - Hash will contain at most k characters.
* Time O(n*k) - For length of string and k distinct characters.