Ad
  • Default User Avatar

    The question says 'a function that takes a list of non-negative integers'.
    so there wouldn't be any array with negative numbers.
    plus that I don't understand why u said in your exmaple it should return only 2 and 3. what about 3.5?