Coding round. You are given a log of vials on a lab bench. Clarify the range first: 2 and 8 are inside the range. A single reading outside the range fails the vial, even if it lasted one minute. Implement the filter. Then the interviewer adds a reading with no temperature and asks you not to guess a number for it. Then they ask what you would do if the same vial id appears twice in the log. Give the rule, the function, and one example of each case.
Preparing this page…
Your current navigation and account state stay available while the next page loads.