Meta | Phone Screen | Bangalore
Anonymous User
793

Phone Screen Round

Asked 2 questions

  1. Given a range of 0 and 1, count the number of occurrences of 1 within the specified range. There will be an API where you pass the start and end values, and it returns the total count of 1's.
  2. Given a range of numbers, find the number that occurs most frequently within the ranges.
    For example, with the input [[1, 4], [2, 5], [3, 6], [6, 9]], the output would be 3.
Comments (11)