Me and my 60 lines of code ...
nice point to consider
Same! I was working on it for about 30 minutes trying to get it to work. One google search for 'sort by number then alphabetically' and, lo and behold, a stack overflow suggesting the hallowed LocaleCompare. Good stuff.
omg that's great!
This comment is hidden because it contains spoiler information about the solution
yes if there is a more than one space I think there might be a problem
I wish this was my solution... this makes mine so inadequate haha :) Nice work!
Ah, then that explains it.
This solution is still really elegant though. You could just regexing the string first without having to refactor the rest of the code.
The task was different until yesterday...
This solution does not satisfy the whitespace criteria of the kata:
The input string can have leading, trailing whitespaces and more than a unique whitespace between two consecutive numbers
Definitely agree. Can terminate after 5 matches.
Loading collection data...
Me and my 60 lines of code ...
nice point to consider
Same! I was working on it for about 30 minutes trying to get it to work. One google search for 'sort by number then alphabetically' and, lo and behold, a stack overflow suggesting the hallowed LocaleCompare. Good stuff.
omg that's great!
This comment is hidden because it contains spoiler information about the solution
yes if there is a more than one space I think there might be a problem
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I wish this was my solution... this makes mine so inadequate haha :) Nice work!
This comment is hidden because it contains spoiler information about the solution
Ah, then that explains it.
This solution is still really elegant though. You could just regexing the string first without having to refactor the rest of the code.
The task was different until yesterday...
This solution does not satisfy the whitespace criteria of the kata:
This comment is hidden because it contains spoiler information about the solution
Definitely agree. Can terminate after 5 matches.