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.
This comment is hidden because it contains spoiler information about the solution
Интересно, что произойдет если n=1000, например :)
Nice solution without class matrix :)
the first test is wrong. Should expect "9401D3", which still is not what the solution gives though.
But you are right, the testbench is bad if it doesnt check for correctly using 2 digits to represent values < 10 (well it probably does test 0 which we here have a hardcoded solution for.. notice how he uses <= instead of < to catch the 0 case)
I was testing your solution and I noticed it does not pass these tests:
Test.assert_equals(rgb(148, 1, 211), '9411D3', 'Noooo') # Expected: "9411D3", instead got: "941D3"
Test.assert_equals(rgb(148, 15, 211), '94FFD3', 'Noooo') # Expected: "94FFD3", instead got: "94FD3"
Someone, please, explain me what does this test "Wrongly updated 'one' key with :one" mean? It's not clearly to me.
I have hash with pairs of keys-value 'one' => 1, :one => 'someValue'. What should I update?
I trying to update all keys, only one of them and not update at all. Nothing works fine.