You are viewing a single comment's thread. Return to all comments →
Quite frustrating when one needs to use multiple languages just to beat the timer. It feels like the time constraint was not supplied adequately for each supported language.
E.g.: TS and JS timed out (with two arrays for heap and queue), then Java15 timed out (with one ArrayList), but python3 did it.
The logic was the same but only the latter beat the clock thanks to the built in heapify.