InterviewLegend

Existing Code: Optimize a Library & Fix a PR

Alex Chen35 min readGuide updated

Most Cursor screens ask you to build something new. Two of the 2026 ones don't. In one you get a working Python library and make it faster. In the other, from the Graphite team, you get a pull request with bugs in it and fix them with the tests running. Either way, measure before you change anything and keep the tests passing the whole way through.

The Cursor angle
Cursor builds an editor that works inside codebases people already have, and its onsite is real work in its own codebase. A screen that starts from existing code fits that. Run what you're given before you edit it, and say what you measured. A faster version that breaks one test is a step backward.

CursorPremium lesson · Coding round

The 2 Cursor problems are below.

  1. A Premium questionCoding · Medium
  2. A Premium questionCoding · Medium

Each with hints, the follow-up and a tested solution.

Get the Cursor questions

$49 a year · all 107 companies · instant access

20,000+ candidate reports

Cursor interview guide

Know what Cursor asks before you walk in.

9 coding · 4 system design · 16 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

Had your Cursor interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.