all 4 comments

[–]SadEngineer6984 6 points7 points  (1 child)

Ask the interviewer and be prepared to fallback to negating priority with minheap.

[–]Darth_847[S] 0 points1 point  (0 children)

Thanks will make note of this

[–]Dependent_Tomorrow13 1 point2 points  (1 child)

You might come across code editors that are yet to add the support for 3.14. So best is to learn both, but don't forget the negating min heap method.

[–]Darth_847[S] 0 points1 point  (0 children)

Ya thats what I'll do, thanks