Closed yvern closed 4 years ago
Hello! Thank you for your contribution to polyglot-euler.
polyglot-euler
P001: no need to create iterator, since (1..1000) already returns one, and no need to explicitly borrow/reference
(1..1000)
P006: by having the whole state in a tuple, we can iterate only once
P001: Try it online!
P006:Try it online!
Hello! Thank you for your contribution to
polyglot-euler
.How the solution works
P001: no need to create iterator, since
(1..1000)
already returns one, and no need to explicitly borrow/referenceP006: by having the whole state in a tuple, we can iterate only once
Performance
P001: Try it online!
P006:Try it online!