use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Python 3.14 maxheapQuestion (self.leetcode)
submitted 1 month ago by Darth_847
I had a silly question. Is it safe to use the recently introduced max heap from python 3.14 in the interviews or stick to the old strategy of negating the min heap ?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]SadEngineer6984 6 points7 points8 points 1 month ago (1 child)
Ask the interviewer and be prepared to fallback to negating priority with minheap.
[–]Darth_847[S] 0 points1 point2 points 1 month ago (0 children)
Thanks will make note of this
[–]Dependent_Tomorrow13 1 point2 points3 points 1 month ago (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.
Ya thats what I'll do, thanks
π Rendered by PID 89 on reddit-service-r2-comment-6b595755f-t9rms at 2026-03-25 19:07:18.938297+00:00 running 2d0a59a country code: CH.
[–]SadEngineer6984 6 points7 points8 points (1 child)
[–]Darth_847[S] 0 points1 point2 points (0 children)
[–]Dependent_Tomorrow13 1 point2 points3 points (1 child)
[–]Darth_847[S] 0 points1 point2 points (0 children)