Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Hi! I wonder if
rustc
optimizes the two traversals into a single traversal? Does anybody know?Would you mind to elaborate? It's almost the same solution in C.
I find it very funny that I'm always overthinking things having a C background, does anyone have any tips?
Can this one be approved?
PLEASE DON'T APPROVE
This forks adds some of the language descriptions, I don't know the missing languages.
DO NOT APPROVE
Changes things in description
TODO: insert all languages as examples
Honestly the whole description needs a little bit of massaging. It used to say returns array, but now it says returns tuple. Since the description last changed from wanting an array to wanting a tuple, the description is not correct for e.g. python.
It used to have the example snippet in one syntax and one syntax only. Now it has two languages specified despite many languages supprted. It will show hs for all others than elixir.
A Rust example should be added to the description.
Changes:
do_test
extra verbose when failing a testThis comment is hidden because it contains spoiler information about the solution
From the description "... double are formatted with no decimal" so there is no "direct" rounding, only the use of "format!" or "write!".
Changed it.
There's no reason to allow incorrect results by using
assert_floats_eq
, multiples are integers, so precise results should be expected.This comment is hidden because it contains spoiler information about the solution
Fixed
Loading more items...