3 ms·
Well, you can speed it up slightly by using the iterator directly instead of forcing the whole generator into a list. But on the other hand, you can make it WA
by xxpor 6y ago
Well, you can speed it up slightly by using the iterator directly instead of forcing the whole generator into a list.
But on the other hand, you can make it WAY faster by doing it with bit manipulation instead like you're writing C:
https://repl.it/repls/ClearcutElaborateEmbeds https://repl.it/repls/ClearcutElaborateEmbeds