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
This comment is hidden because it contains spoiler information about the solution
You really should not use char maths in production for this kind of problems. Bad "colors" are an arbitrary human-defined list, so you should clearly define it as a const/var for later corrections. If they suddenly start using
z
orΩ
or🍆
the code should still work.This comment is hidden because it contains spoiler information about the solution
I see only on "ceiling" and it is necessary if you want to have enough paper:-) Cheers.
As already mentioned, the actual solution to the problem includes two 'ceiling' calls, otherwise the result may get smaller than necessary.
Writing a solution that's wrong and needed just to pass the test is as bad of an exercise as it can possibly be.
I understand the irony of the situation in regards to coding as a real life job, but this is not the place.
Rust version reported missing.
This comment is hidden because it contains spoiler information about the solution