Hi guys,
Does anyone have a priority queue implementation they use for c# solutions that's easy to implement in an interview setting?
I've used a sorteddictionary with a list as the value type, but the issue is that this seems suboptimal, it gives me TLE on a solution I was working on.
It's frustrating to not be able to answer these questions. .net 6 supports it, but it doesn't seem like there's any plan for leetcode to implement it. I'm looking for an efficient workaround as a result that I can actually whip out if in an interview.
Thanks!