companyhub
DashboardCompaniesProblemsSheetsBookmarksRevisionsAnalyticsLeaderboardCompare
Settings
Sign in
DashboardCompaniesProblemsSheetsBookmarks
Hard

Subarrays with K Different Integers

68.1% acceptance · asked by 17 companies

Solve on LeetCode
ArrayHash TableSliding WindowCounting

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

Hashedin100Squarepoint Capital63Servicenow63Roblox63Amazon

Related problems

Two Sum
Easy
Merge Intervals
Medium
Best Time to Buy and Sell Stock
Easy
Group Anagrams
Medium
Number of Islands
Medium
50
Morgan Stanley50
Salesforce50
Capital One50
Uber38
Bloomberg38
Google38
Ibm38
Infosys38
Microsoft38
Oracle25
Tiktok25
Meta13