Ingeniero Java Senior Interview Questions

5,779 ingeniero java senior interview questions shared by candidates

Implement a rate limiter that upon construction is given an integer representing the number of times a target resource is accessible during a fixed 1-minute time window. The interface would declare a single method: boolean canAccess() that would return true if a resource can be accessed immediately during the current time window, false otherwise. Additional requirements: * You can't use any helper thread to maintain state. * Must maintain time complexity of O(1) * Must be thread safe.
avatar

Senior Java Developer

Interviewed at Cybereason

2.8
May 18, 2023

Implement a rate limiter that upon construction is given an integer representing the number of times a target resource is accessible during a fixed 1-minute time window. The interface would declare a single method: boolean canAccess() that would return true if a resource can be accessed immediately during the current time window, false otherwise. Additional requirements: * You can't use any helper thread to maintain state. * Must maintain time complexity of O(1) * Must be thread safe.

Viewing 461 - 470 interview questions

Glassdoor has 5,779 interview questions and reports from Ingeniero java senior interviews. Prepare for your interview. Get hired. Love your job.