4 ms·Each sleep is log n for the heap insertion, so the overall complexity is at least n log nby QuadmasterXLII 3y agoEach sleep is log n for the heap insertion, so the overall complexity is at least n log n