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.
😲 High School Maths Is Really Helping!!!!!
There is one thing that I don't think is clearly explained in the description:
The number of occurrences of a character can be more than one digit long. This means the solution also needs to handle and output multi-digit counts when necessary.
While I understand that this may be implied, it wasn't something I considered when solving the problem. As a result, I had to rework my solution once I discovered this requirement.
I would appreciate it if this detail could be explicitly mentioned in the problem description. Thanks!
Too Slow
Thanks for the explination, i figured that would be the case but did not like that it is invisibly included
it's a Codewars-specific behavior that won't work in general. The Codewars' C++ code runner adds some
#includedirectives before compiling the code, and<string>happens to be indirectly included.so why isnt #include necessary if your function expects a string output
Funny ok but slow, dangerous and illegible !
Java was approved at some point
This comment is hidden because it contains spoiler information about the solution
🥷🏿's js trying his best to make the shortest line of code possible atp 😭🙏
What the...
What a clever way to solve this problem. I wish I could've solve math problems like this earlier on.
Really nice one, I'm not sure if parsing the input is all that fitting for the problem as it just adds extra steps (once it doesn't exceed 255), but it's no big deal, real fun this one.
OMG, this was so satisfying to complete. Really nice kata. I'm ashamed of the size and time my solution took to come up with, but it works.
Though I should have paid more attention and realized that it was asking for rounfing rather than *ceiling earlier, it would have saved me some time.
the warning is gone now. Re-publishing the language version usually solves it
Loading more items...