0 day streak
Anonymous · shared experience20 Jun 2025 · 10 views

Razorpay: Mini search engine: add/remove documents, AND-query words, search by tag

Interview question #Razorpay SDE 2 Machine coding

Problem. Build a small document search system.

Requirements.

  1. Add and remove documents (plain strings are fine)
  2. Given a query, efficiently return every document that contains all of the query's words
  3. Make documents searchable by tags as well. The interviewer hinted that the storage structure for documents should be chosen with care

Context. The role was senior software engineer. The candidate asked about likely future features so they could plan interfaces for extension. The interviewer simply repeated the base requirements.

What the feedback showed. The candidate got credit for understanding the problem quickly and giving an optimal approach on the first try. They were still rejected because the code was not modular or extensible enough, and because input validation and edge-case handling were judged insufficient, even though the candidate believed they had tested many cases. The lesson: in this round, code structure and defensive checks count as much as the algorithm.

0 comments

Comments 0

No comments yet. Ask the author something, or add what happened in your own round.