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.
Thanks, I'll try that.
This comment is hidden because it contains spoiler information about the solution
Look in java I've done it pretty easy, doubt it's any segfault.
But u might be doing something that causes the issue , try to get my solution in c++.
It's pretty straight forward and I'm not trying to be clever on it , who knows what format or other might be causing it.
Well, look at the bright side: you solved it with 2k LOC, I have no idea how to solve it (did not try tho). Your solution is still better than (non-existent) mine.
The number of lines of code is irrelevant if you are getting the correct result. Mine is a couple of hundred lines half of that is helper functions my solution looks like a caveman compared to the clever ones, but I completed the kata and learned from the clever ones a lot. Do not make your goal to write fewer lines vs clean code that YOU understand. If you have been writing code for a while sure a dozen lines is easy to do. I have to agree 1000-2000 is a bit too much for this kata. My suggestion is that you read the description someone wrote here on the discussion is much clearer than the kata description. Sit down and write the algorithm in a notepad. Maybe even make a flowchart. Also run the test cases and see what's expected. Are you debugging stepping through your code?
Maybe try some easier white kata before coming back to this one.. solutions to this kata don't really need to exceed a couple dozen lines.
I'm rlly bad at coding, I've written over 1000 lines on this 1, maybe 2000 lines
so I can find out it's the wrong way. Such abstract description.
I've seen that pros use collectors,streams and a lot of shorthand notation, I'm so far .
Can someone tell me how long it took u to do this?
I did it in about a day :( , how is that?;
And there is rlly clean code .Can u guys rlly write that code on the first try?