Ad
  • Custom User Avatar

    Closing as this is not a proper kata issue.

  • Custom User Avatar

    That doesn't solve the problem, you want the path to start and end at the same point, what you're doing would return true for a path like this: ['n','n','n','n','n','n','n','n','n','n'] where you can easily see you end at ten blocks from where you started.

  • Custom User Avatar

    Those are two different conditions that the path must comply for your function to return true. What other meaning do you think it could have? I don't think that's a kata issue.

  • Custom User Avatar

    The instructions are not very clear. Not sure what this sentence: "so create a function that will return true if the walk the app gives you will take you exactly ten minutes (you don't want to be early or late!) and will, of course, return you to your starting point" is trying to say. Are those 2 different conditions? Or all equations will return you to the starting point - if so, what is the point?