← Questions

Find the bugs in an AI-generated URL shortener

0
MicrosoftCodingLast asked Jun 2026

A coding interview question asked in Microsoft's technical phone screen, last asked Jun 2026. It tests code review, debugging and ai-generated code.

An AI assistant wrote the URL shortener below. Review it as you would a pull request: find what is wrong (correctness, collisions, inconsistent contracts, missing error handling, thread safety), explain why each problem matters, and fix it.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

What it tests

code review · debugging · ai-generated code

Your code and the AI tutor open when you unlock this question.