Ad
  • Custom User Avatar

    Those top voted solutions select the ones only enclosed by parenthesis, so # is not selected

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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?

  • Custom User Avatar

    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!

  • Custom User Avatar

    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.

  • Custom User Avatar

    DarkD1 This has to be my favourite kata so far. A real world problem requiring a solution.

  • Custom User Avatar

    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

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    I started with Sololearn. It's free (at time of writing) and it help me get good enough to get going here.