LRU Cache Debugging
Debug a broken LRU Cache implementation, identifying and fixing all bugs while maintaining correct usage of generics (Java) or templates (C++). Syntax correctness is critical — the code must compile and run successfully to pass.
Asked at:
Microsoft
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Mid April, 2026
Microsoft
Mid-level
It was a debugging round. Syntax is very important using genrics(java) or templates (c++). Even if you correct all the bugs but not able to make the code running due to complex syntax, you are rejected. Check about Optional keyword in c++ and templates are a must.
Your account is free and you can post anonymously if you choose.