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.
@enji ^^^
What? I'm not sure what you mean. I am talking about saying "Get sum of nth row for Pascals Triangle" kind of thing. I know it isn't Pascals Triangle. I don't know what this is called.
@bobthelantern I totally didn't see it lol.
kata hint != kata suggestion.
My only suggestion is a hint to the solution, a link to a mathisfun page or something. I'm not asking for the solution, just a lead. I was looking up this problem for an algorithm I could learn, but I couldn't find anything at all. I don't know how people came up with that solution...
It just sucks to come up with a plan and finally find your solution, only see that 600+ people solved it in 1 line.
This comment is hidden because it contains spoiler information about the solution
In Codewars, you can usually see the inputs by printing them out.
How can I see which input causes my solution to fail?
Solving a Kata
You can think of Hajime as something along the lines of "Let's start the exercise!"
Have thoughts...
they did not
How did you avoid the warning about comparing an int to size_t?
My code kept failing the attempt till I put in the print statement and then it just passed all of a sudden... I think the malloc was failing? I don't know.
I am very impressed with this. I had no idea replace would just return the string if it fails to find the item.