Ad
  • Custom User Avatar

    You know it takes you one minute to traverse one city block, 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. Return false otherwise.

    Think about what I wrote before. Your function returns true when it should return false.

  • Custom User Avatar

    What if walk.length is 4? I think length should be an exact value (and only one) to be valid.

  • Default User Avatar

    You could post your whole code.
    It would be easier to help you that way.

  • Custom User Avatar

    Value is not what was expected means you returned true instead of false there.
    Are you checking path length?