companyhub
DashboardCompaniesProblemsSheetsBookmarksRevisionsAnalyticsLeaderboardCompare
Settings
Sign in
DashboardCompaniesProblemsSheetsBookmarks
Medium

Longest Substring with At Most K Distinct Characters

50.0% acceptance · asked by 12 companies

Solve on LeetCode
Hash TableStringSliding Window

Workspace

Scratch, run, iterate — then submit on LeetCode

Custom input (stdin)

Console

Output appears here. Runs on the free Piston sandbox.

Your notes

Sign in to keep markdown notes on this problem — approach, complexity, gotchas.

Who asks this

Appdynamics100Coupang88Bitgo63Yandex63Tiktok

Related problems

Two Sum
Easy
LRU Cache
Medium
Longest Substring Without Repeating Characters
Medium
Group Anagrams
Medium
Top K Frequent Elements
Medium
38
Oracle38
Apple38
Google25
Goldman Sachs25
Amazon25
Microsoft25
Meta13