Ad
  • Default User Avatar

    filter() returns an iterator, so it has to be turned into a list to match the output format

  • Default User Avatar

    Test data No.7 for Python seems to be incorrect. The correct output for this data set "range(100)" is -1 (stated in the test function) while the checking system said the correct answer should be 6. What may be the reason here?