r/leetcode • • 10d ago

Question Navan Code Design Interview

Anyone know what they will ask in Code Design interview at Navan for Backend SWE role and how to best prepare for it?

They said: 'Code Design Interview: The focus will be on how you structure code, including APIs, modules, handling edge cases and evaluating trade-offs.'

I've already had a recruiter call, take-home assessment and DSA/LeetCode interview.

2 Upvotes

2 comments sorted by

1

u/Uahakan 10d ago

that's basically a low level design round. expect something small but realistic, my guess is travel or expense flavored since that's their product, like an approval flow or a booking model. they want classes or modules with clean interfaces, not boxes and arrows.

where people get judged is the requirement they add halfway, like "now approvals need two levels" or "support another currency". if your design takes that without rewriting half of it, that's the round. write the public API first, say the edge cases out loud (duplicate submit, bad input, partial failure), then code.

1

u/Various-Mine-8642 10d ago

Treat this more like a small design-in-code round than another DSA round. Pick one backend feature you know well and practice talking through the API shape the module boundaries and the edge cases you would test. When they push a tradeoff name the constraint you are optimizing for then show the simpler version first and the more flexible version second. That usually matches what they mean by structure and tradeoffs.