Hi All,
Gave my video call live coding today with 3 engineers on call.
I was asked to write a function on rate limiter to know whether we can access the 3rd party API or not.
Condition: return false if you have reached 100requests or more in the last 60min otherwise true.
I wasn't able to come up with a solution right away, got inputs from engineers who tried to help and came up with naive approach.
But, not very happy with the way it went, one of worst interviews(based on my performance) I had in last 2 months.
Current LC count- solved 350+ and going up.