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.
Those top voted solutions select the ones only enclosed by parenthesis, so
#
is not selectedThis comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Test 8 keeps telling me I have the wrong answer. I have drawn out a scale map of the journey described in test 8 and my answer is correct. Either the answer to this test incorrect or my understanding of the problem is missing important information. This is the only test that involves skipping a town mid journey but I have checked and re-checked and my maths is correct. The journey goes from town Y1, Y2, Y4, Y5. Am I missing something?
As far as I can tell, Clans are pre-existing groups such as companies or universties or other real world groups. I'm on my own so I changed my Clan to Nomads. Turns out there is a few of us!
Beware of the difference between Permutations and Combinations.
Permuations care about order, for example, Permutations of 1,2,3 would be 1,2,3; 1,3,2; 2,1,3; 2,3,1; 3,1,2; 3,2,1.
Combinations of 1,2,3 could be any one of the above Permutations.
DarkD1 This has to be my favourite kata so far. A real world problem requiring a solution.
Not a kata issue, either remove it from the if or add parentheses so the assignment is done before the comparison, right now it's doing the comparison first and assigning that to
$pos
.Read about operators precedence
This comment is hidden because it contains spoiler information about the solution
I started with Sololearn. It's free (at time of writing) and it help me get good enough to get going here.