Yelp Online Assessment 2024 | Rollover Business Hours & Spam Review Detector
Question · Posted Jun 2026
Problem 1 - Rollover Business Hours Problem Statement You are given an array of operating hour intervals hours. Each interval is represented as: HH:MM-HH:MM You are also given a string queryTime. Some intervals may extend past midnight. Return true if the restaurant is open at queryTime, otherwise return false. Constraints Constraint 1 ≤ hours.length ≤ 105 Time format is always HH:MM 00:00 ≤ Time ≤ 23:59 Test Case Input Output hours = ["08:00-12:00","20:00-02:00"] queryTime = "01:30" true Problem 2 ...
The full answer & interview discussion are available to premium members.
Log in Create a free account