Crushing Tech Interviews with the Top K Elements Pattern
Apr 15, 2021 · 2 min read · To follow up from my previous post, let's dig more into some patterns that revolve around heaps! When you're given a question that revolves around keeping track of k elements, a good bet is to think about solving the problem with heaps. Lets say you'...
Join discussion