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.
kata hint != kata suggestion
Print the input to see what happens.
Awsome ideia! Thanks man
resolved above and previous post of yours
This comment is hidden because it contains spoiler information about the solution
You cannot sort a number. Some intermediate steps are missing :)
It's using a comparator. Given 'a' (8) and 'b' (2), if "a - b" is POSITIVE, then 'a' MUST be LARGER than 'b'. Therefore, we want 'b' to appear first. if "a - b" is negative then 'a' is SMALLER than 'b', so we want 'a' to appear first. The only thing we care about in "a-b" is the sign of the difference, not the result itself. if the result is = 0, then a = b and we do not care which appears first.
Read about regular expressions.
@MGFNolan - which language?