phu that was hard.
My code looks way too much compared to others but... i still like that problem :)
Hi @Throneos, in my case I did not use strlen I replace with my own parsing block code (parsing function should be well) to find the null character and get the real size and use this size to cut the string because if I use other way to get the string length I get some random characthers (maybe garbage information) and the null character was moved some places and for that reason the unit test fail all the time.
I wonder if are you getting the length as one of the first steps? and do you use this lengh to proccesing the data?
I think the relation between how do handle the null character and how do you getting the complete length is the key to resolve the problem.
I hope my comments help you.
I have the exact same problem.
Is this happening because of strlen?
this was almost a great 7kyu, but the double-spaced words ruined it.
I passed the tests but then I have this problem
org.junit.ComparisonFailure: expected:<[ ]> but was:<>
This comment is hidden because it contains spoiler information about the solution
Thank you! That's good advice.
I can't manage to maintain the right spacing between words. Is there a way of doing this without regex? I haven't learned that yet and I don't want to use anything to solve Katas that I haven't learned in my course so far.
No it's not.
Yeah, you have to write your own. The author didn't prepare it for us.
Hello! I'm from the future. It seems like you're not a newbie anymore :)
OP solved it, closing