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
iteration who?
In Rust, there is a distinction between
to_ascii_lowercase
andto_lowercase
.to_ascii_lowercase
is specifically designed for ASCII characters, while to_lowercase is used for Unicode characters.to_lowercase
function should be used for general case conversion of characters, including non-ASCII characters.This is due to the fact that Rust doesn't simplify for you the strings.
"hello world" has obviously 11 characters, but it is not always 8 bit each, hence, the necessity for different methods based on the type.
I'm studying rust, and maybe my explanation it is not 100% correct. The free microsoft course for Rust explains very well strings, but the rust doc go deep inside the problem: https://doc.rust-lang.org/std/primitive.char.html
Is this really 6 kyu? With performance and all, I think this deserve better, I've done 3kyu lot easier than this (I mean both code and math involved). Maybe is really personal.
Nice Kata btw!
@Blind4Basics I know it's 5 years old, but could you elaborate why it is a very bad idea?
I moved from python to rust just in theese days, thinking: my old good onle liner won't be anymore in this language.
Ok, I couldn't have been more wrong.
If anyone care to explain how this sorcery works, since I have HUGE trouble with String, str, &str, etc etc.. this looks liek wizardry!
love to see the new match in use!
This comment is hidden because it contains spoiler information about the solution
Not clear what to do if message is shorter than pixels.
Let them untouched?
This is what I started to do, then rightrotate got me wrong.
Thanks to this I can understand the whole algorith now, thanks!
Operation lib
__add__
,__sub__
,__truediv__
,__mul__
are faster than lambdas. yoou could be faster with it.will have to reduce the strings.. hahah!
This comment is hidden because it contains spoiler information about the solution
As far as I could agree with you, a certain power for a special number could be actually the number of digits... and that as I said, was wrong by my side.
I don't consider myself neither a genius nor a fool, still, I think that description could be better just with another example that could unravel any interpretation (I'm not the only one).
I'm sad the tone of your answer is so much aggressive.
Have a nice day.
this is the sickiest I've seen so far scrolling.
BRO! 58 Kb lenght variable.
You are a hero.
Loading more items...