Algorithm · Expedia · Hard
Problem You are given n test cases for a machine learning model. Each test case has an arrivalTime[i], which is the moment it becomes available. The testing environment can be turned on exactly once. When it is switched on at time t1 and switched off at time t2, it executes every test case whose arrival time falls in the inclusive interval [t1, t2]. The total active duration is t2 - t1. The efficiency of a test run is defined as: efficiency = (number of test cases executed)…
Checking your access…