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.
Cool! I haven't seen a ternary used like this.
Yes UB indeed, I just went with obfuscation mode. (-:
the
i++
is undefined behaviorAhh nice. I had pretty much the same idea for the solution, was short on sleep and too tired to implement. :D
6
is the length, the meaning of5
would be less clear. With the length, it's like indexing a full array from the end with.at(-ir)
.Clever!
Any reason for
6 + ~ir
instead of5 - ir
?chars argument is a pointer to a constant characters i.e., you cannot modify the contents of address to which it points to but can modify what string it points to
.
:-)
Beautiful two katas, absolutely loved them. (:
you can use a letter the number of times it is in the second string.
Great kata, solved non-recursively!
I'm glad you like it :).
Loved the kata, I painstakingly wrote all the code and all green on the first attempt (:
P.S the kata is a bit harder than 6 kyu.
For sure. Author is cleaning dojo for a week for missing that.
Loading more items...