Meta
More Experiences
Meta | Phone Screen | Bangalore
May 7, 2025 • 2 reads
Summary
I had a phone screen with Meta in Bangalore where I was asked two data structure and algorithm questions. One involved counting occurrences of 1s in a given range using an API, and the other was about finding the most frequent number in a set of overlapping ranges.
Full Experience
Phone Screen Round
Asked 2 questions
- 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.
- 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.
Interview Questions (2)
Q1
Count Occurrences of 1s in Binary Range with API
Data Structures & Algorithms
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.
Q2
Find Most Frequent Number in Overlapping Ranges
Data Structures & Algorithms
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.