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.
JavaScript:
as much as I read, I don't understand lol
I tried to solve this in Rust. It's not that hard, but it pigeonholes you so hard into a bad design that exposes internals and has a bad memory layout, all of which I was trying to avoid. After a lot of trying to work around the bad design, I passed the local tests, but I was unable to pass the real tests due to the repeated use of design implementation internals that should not have been relied on. Even beyond that, pretty much everything you're being told is a requirement is non-idiomatic Rust:
to_vec
instead of implementing theFrom
/Into
trait, custommap
andfilter
instead of implementing theIntoIter
andIterable
traits, customfrom_iter
instead of implementing theFromIterator
trait.If all of that ever gets fixed, I'd love to try this again. Peace ✌🏻
This comment is hidden because it contains spoiler information about the solution
I have trouble with one random test :
89953 922317
which is supposed to output 4
I don't see how it can be, I find 5 when I run it by hand. It would be 4 if the carry was not counted in one of the operation which would be incorrect.
log of the operations :
3 7 +1
carryValue 1
carries 1
5 1
carryValue 0
carries 1
9 3 +1
carryValue 1
carries 2
9 2 +1
carryValue 1
carries 3
8 2 +1
carryValue 1
carries 4
0 9 +1
carryValue 1
carries 5
Statement says:
Though in random tests this rule is not followed: shorter numbers are not zero-padded.
I DID IT!!!
was quite some work to get it done... passed the last 100000 test in time, but had trouble to find a solution for the 1.000.000.
so i was looking at other solutions, tried others out... looking at the
and found solutions that didn't pass the attempt.
are those old once, and test got changed?
Ruby 3.0 should be enabled.
This comment is hidden because it contains spoiler information about the solution
JS: Node 12x should be enabled and new test framework should be used
JS: No random tests
No random tests.
This comment is hidden because it contains spoiler information about the solution
Rust:
Why is IntoIterator for I, not Iterator?
Loading more items...