Chewy Interview Question

How to design and implement a soccer field reservation model?

Interview Answer

Anonymous

Mar 14, 2022

I wrote all classes in one file broke the problem a part. The interviewer asked about performance issues of my approach. I switched an array O(n) approach for a hashmap O(1) approach. Reservations were every half hour.