I was asked to implement a variadic function registration system. The system needs to register functions based on their arguments and handle a variadic flag to match functions accordingly. I initially provided an array-based solution, storing all functions in...
### Round 1: Coding **Question:** I had to demonstrate my understanding of a language API. I actively analyzed and optimized the complexity of my solution. I implemented a brute force solution and then a slightly optimized version, but it still had a potential...
### Round 1: System Design **Question:** Design a key-value store for Kafka on a single machine, including WAL (Write-Ahead Logging), snapshotting, and recovery. --- ### Round 2: Coding **Question:** Implement get, put, average, and maxWindow functions using s...