InterviewDB
Question
Function Matching: Map Caller Signatures to Overloaded Function Definitions
phone
Question Details
Problem You are given a list of function definitions, each with a name and a typed parameter list. You are also given a list of call expressions, each with a function name and argument types. Implement a matcher that returns, for each call, the best matching definition — or "NO_MATCH" if none apply. Matching rules (in priority order): Exact type match on all positional arguments. A parameter typed "any" matches any argument type. If multiple definitions match, prefer the one with fewer "any" par…
Full Details
🔒
Unlock all Confluent questions
Full insider details, leaked discussions, and candidate experiences.
Get full access — $100 a year, unlimited accessAbout This Question
This is a reported interview question from a confluent interview during the phone round.