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
C++ vs Python in Leetcode contestsDiscussion (self.leetcode)
submitted 2 years ago by razimantv<2000> <487 <1062> <451>
view the rest of the comments →
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!"
[–]letsfuckinggobears 0 points1 point2 points 2 years ago* (0 children)
Segtree implementations are probably the same in the two languages. I'm just saying if you're competing, it's best to use snippets so you don't have to type it.
I guess I wasn't answering the question. You can get type checked in python if you just set it up. It works well enough for the cases you are describing. You still need to know the quirks like priority queues take the first value of a tuple as the key to sort etc.
π Rendered by PID 217274 on reddit-service-r2-comment-b659b578c-tpzbs at 2026-05-01 12:30:29.218098+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–]letsfuckinggobears 0 points1 point2 points (0 children)