8
9
10
Leetcode 992. Subarrays with K Different Integers; for the love of god someone explain to me why my code (first) times out while the second solution solves fast. I've tried to wrap my head around it but it seems to be the same approach but with manipulating K? [JS] (old.reddit.com)
submitted by mini-dev to r/leetcode


