logoalt Hacker News

denys_potapovtoday at 3:20 PM1 replyview on HN

Cool. Recursion in python is common bottleneck in competitive programming. Will give it a try. I created a similar tool for recursion [1]. But ended with rewriting AST and emulating stack. Pros - no need for accumulator, cons - almost unusable in real world.

[1] https://dev.to/denyspotapov/callonce-python-macro-for-unlimi...


Replies

qsorttoday at 3:42 PM

Do you frequently use Python for competitive programming puzzles? I've done it a bit in the past, and everyone always used C++.

show 1 reply