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.
regex jumpscare
It seems that the issue here is that "last" is a reference, but the result of ".collect<Vec>()" is a temporary, so in the next invocation of the closure last would be referencing a Vec from a previous closure's stack-frame which would probably blow-up, and Rust is protecting you from the creating the corruption. Happy coding!
Unspecified AssertionError
The assert libary has problem?
please change to chai
Yes, correct
Which language ? Python ?
Updated JS version with randomized tests
updated in this fork
rust version with (pseudo-randomized tests
This comment is hidden because it contains spoiler information about the solution
I should have learnt Math properly in school.
Flabergastingly not efficient yet beautiful.
Take my neverending admiration
Ikr, hard math == easy programming;
flatMap is supported by Node 11 onwards.
Any idea why I can't use Array.flatMap() in js ?
I think it may have more to do with this:
Loading more items...