Ad
  • Custom User Avatar

    I'm also having trouble with getting my code to pass the final test when I try to submit my code, even though it passes the sample tests, and these seemingly want the same results - I may be mistaken in assuming these are probably the same test cases repeated, but if not I really don't know what is going wrong!

  • Custom User Avatar

    yes, sorry I didn't specify!

  • Custom User Avatar

    There seems to be a discrepancy between the test cases and the description. It says the array will be of only positive integers, but one of the test cases includes a negative number, so if you write a simple solution expecting only positive ingegers it fails. I think the description or the tests need to be updated to make this consistent