Implement a Referral Network
Company: Mercor
Role: Machine Learning Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Onsite
Quick Answer: This question evaluates skills in modeling and manipulating directed acyclic graphs, implementing graph-based ranking metrics (reachability and flow centrality), and reasoning about stochastic growth and expected-value computations, testing competencies in graph algorithms, data structures, combinatorics, and probabilistic modeling within the Coding & Algorithms domain. It is commonly asked because it probes both practical implementation ability and algorithmic thinking—requiring deterministic traversal and ranking logic as well as conceptual understanding of probabilistic growth models and trade-offs between exact dynamic programming, approximations, and simulation—thereby assessing both practical application and conceptual understanding.