Ad
  • Custom User Avatar

    There're already several katas about finding a pair of elements in an array in linear time. And here the "expected" time complexity is not even enforced.

  • Custom User Avatar

    1º The description is not consistent as it states that 2 different movies should be returned, but then there's an edge case with only one movie being returned.
    2º You should specify that in case we couldn't find 2 movies, we should return one equal to the half of the flight