3 ms·
That's not the same program. You're using a set literal ({}) instead of a list ([]) or a tuple (()).
by akx 13y ago
That's not the same program.
You're using a set literal ({}) instead of a list ([]) or a tuple (()).
- dagw 13y agoJust tried it. Using a list instead of a set literal sped up the program slightly (~350 ms -> ~330 ms for python and ~155 ms -> ~140 ms for pypy on my computer).
- deleted 13y ago[deleted]