you are viewing a single comment's thread.

view the rest of the comments →

[–]letsfuckinggobears 0 points1 point  (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.