Ad
  • Custom User Avatar

    Not a Python expert, but I doubt that they run your code differently.

    As you describe your code (and assuming that you pass the tests before the bananas) it would return False (which is not the correct answer). But it is of course difficult to say without looking at the actual code.

    It's not much but I hope it helps you forward.

    Good Luck! :-)

  • Default User Avatar

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

  • Custom User Avatar

    5 kyu kata represent a novice programming level. At this level the kata are similar to 6 kyu but more challenging. It includes:

    Complex language features that require mature OOP/Functional concepts
    Advanced OOP/Functional concepts
    Complex Design Patterns
    Advanced regular expression usage

    I don't see any of those here.

  • Default User Avatar

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

  • Custom User Avatar

    Worked perfectly thank you,

    nice, challenging exercise, keep up the good work!

  • Default User Avatar

    Yes, there was a bug in php test, my fault.
    I fixed it. Please try again now and let know if it works.
    Thanks

  • Custom User Avatar

    Using PHP here, when I run my code every test works except the last:
    Error: Call to undefined function sortPeople()
    It is not in the sample test so I can't really see.
    Is it me or is something missing?
    Thanks

  • Default User Avatar

    Thanks for the link and the info.

  • Custom User Avatar

    Not an issue.

  • Default User Avatar

    Javascript is most popular in this kata, so i think that must be something in your code.
    If you don't mind you can past your code and then i can investigate it.

  • Default User Avatar

    If you talking about javascript it is not issue. It's legal from es5. Moreover it's good practise: https://github.com/airbnb/javascript#commas--dangling

  • Default User Avatar

    Minor issue, but...

    In the example input there should not be commas after the points values:

    {
    name: John,
    points: 100, <--- HERE
    }

    In the example output there should not be commas after the position values:

    {
    name: John,
    points: 100,
    position 1, <--- HERE
    }