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.
yes: least significant bit is set for every odd number ;-)
Random test on https://www.codewars.com/kumite/6265f7afe67fbaf7b37204a6?sel=6265f7afe67fbaf7b37204a6
Thanks for your comment.
I've adapted @My-'s code to Rust 1.60 and rand::Rng +0.8.0 (Changelog 'gen_range(a, b) was replaced with gen_range(a..b)" ir order to compile the battery of tests.
I suggest to include (Rust language) this test in order to check non empty vector when all elements are zero (see my last exercise attempt to understand the reason):
Clever too much since test asserts don't cover when all elements in array are 0 ;-)
I suggest to include this new assert in the exercise: