Mercor Coding Interview Questions
6 coding questions reported by candidates who interviewed at Mercor, out of 11 Mercor questions we track. They average 3.0/5 difficulty (medium). Most common topics: Mercor, Complexity Analysis, Debugging, Code Review. 6 were reported asked within the last year, most recently in October 2026.
Practice Mercor questions →Difficulty
- 2/5 — easy2
- 3/5 — medium2
- 4/5 — hard2
Asked for SWE (6), Quant (1)
Reported Mercor coding questions
Permutation Sort and the Rank of the First Sorted Ordering
2/5A warm-up on the slowest correct sorting method: try every rearrangement until one comes out in order. The real test is the follow-up, which asks you to predict exactly how much work that brute force does without running it, and it hinges on how repeated values are handled. Expect a discussion of factorial running time and ranking permutations.
asked October 2026PermutationsSortingBrute ForceDebug a Quadratic CSV Writer: Trailing Commas and Quoting
2/5A debugging round built around a short function that serialises rows of data to text. It looks almost right, yet it corrupts real-world values and slows to a crawl as the input grows. You will repair the output format, handle awkward characters correctly, and explain where the hidden cost of repeated string building comes from.
asked October 2026DebuggingStringsCSVDebug a Payment Service That Double-Charges on Retry
3/5A debugging round on a checkout handler that misbehaves when the network or the process fails at the wrong moment. You trace each failure to a concrete sequence of events, make client retries safe, and decide what to do about outcomes that are genuinely unknown at request time.
asked October 2026DebuggingCode ReviewIdempotencyRank Top-K Users by Network Reach and Flow Centrality
4/5Investigate complex graph traversal and network analysis techniques to rank influential participants within a referral ecosystem, featured in interview sessions at Mercor. This task challenges you to calculate reach and centrality metrics across directed structures containing potential cycles, requiring robust cycle-detection and path-counting strategies. It is an exceptional test of advanced graph algorithms and performance optimization. Dive into the complete problem statement and optimal architecture by obtaining a subscription.
asked July 2026MercorExpected Network Size After N Days (Probabilistic Growth with Caps)
4/5This Mercor interview question delves into probabilistic modeling to estimate the growth of a referral network over time. You are tasked with calculating the expected total size of the network after a specified number of days, starting with an initial group of users. The model incorporates a daily probability for each person to successfully refer a new user, alongside a lifetime cap on the number of referrals any single individual can make. New users also contribute to growth under the same rules. This problem requires careful consideration of expected values and potentially dynamic programming approaches. The full problem description and a model solution are available with a subscription.
asked July 2026MercorImplement a Referral Network (Graph Design)
3/5Reported as an interview task from Mercor, this exercise involves designing a specialized data structure to manage directed relationships within a professional referral network. You will need to implement efficient methods for establishing connections and querying immediate associates or downstream candidates within the graph. This challenge examines your object-oriented design capabilities and graph traversal efficiency. Reviewing the complete requirements and optimal code architecture demands a paid subscription.
asked July 2026Mercor
Mercor coding interview FAQ
- What coding questions does Mercor ask?
- 6 reported coding questions, most often on Mercor, Complexity Analysis, Debugging, Code Review, Permutations.
- How hard is the Mercor coding interview?
- The reported coding questions average 3.0 out of 5: 2 at 2/5, 2 at 3/5, 2 at 4/5.
- Are these Mercor coding questions recent?
- The most recent report is from October 2026, and 6 were reported within the last twelve months. Dates come from the interview reports themselves.