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.
Nice solution
This is fire
A c# string is nullable per default, unless you explicitly enable the nulllable check in the compiler, which was introduced in .NET 6+.
And even then you'll only get a warning during compilation time. If you ignore it, the program WILL crash when the string is null during runtime.
Yea, but we now know, because the input is
string
and notstring?
that the input isn't null ;)Wow. Just wow.
@paulsanchez ~ It was a total duplicate when it was first published. It was put into draft mode and changed before you saw it.
i think it's an enjoyable sort of kata, i would hint something about the validations on the description, i think it's also cool if you don't wish to list them. just mention that they have to be figured out or something.
good job!
I don't agree on them being equal. don't unpublish!
thanks, fixed
actually, here it is
Have you checked to see as to whether or not this kata has been already done? I think it has been in one form or another. If it is a duplicate, you should unpublish.
No random tests. Check out this documentation for more information.
I benchmarked this solution against the Linq variations, this method is faster for large arrays (n=10000)
so simple, so beautiful
Loading more items...