Ad
  • Default User Avatar

    The order of the arguments in the test calls in the provided sample tests for python should be reversed

    I was getting the error:

    4 should equal 2

    implying my function was returning 4, while the expected answer was 2, so I though I was over counting.
    Except it should have been the other way around. I was under counting.

  • Default User Avatar

    O(2n) is the same as O(n)