Atlassian Interview Question

Write code that performs rate limiting for a user. Criteria: one attempt/user/sec; 4 attempts/user/3 sec.

Interview Answer

Anonymous

Nov 22, 2024

I worked through the problem in Go. Go's test runner does not guarantee ordering, so writing test cases that passed was challenging. Despite writing Go full-time for almost 7 years, I momentarily forgot that structs existed. Once he reminded me, I smacked my forehead and completed the solution. Mea culpa. I suspect that this was why I did not move forward -- momentary interview nerves.