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 is a great and clever solution. But is this performant for longer solutions compared to HashSets ? I am new to codewars. The tradeoffs between efficiency and one liner functions are interesting.
DUDE. CLEVER.
Began to learn C# like, a few months ago.
Wrote literally a massive thing after one hour just to see this
I feel dumb, but holy geez, that was very, very interesting to see! Congrats, fella.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
cool
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Or the other way round?
So basically if a character repeats in a string it return true and if it doesnt it returns false?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Now I am curios if there is an even shorter way to solve this....
@pescadomuerto: when it comes to time complexities, most of the time comparing the number of passes is meaningless. You're currently sort of saying that
3*n != n*3
. That's why the asymptotic behavior is ignoring the constant factors.Loading more items...