CConfluent·DSAEngineerOnsite – Coding 1
Function Signature Matcher (Method Dispatcher)
Problem
Implement a method dispatcher that matches a call to the best overload, handling variadic arguments (reported Confluent question).
Example
dispatch(name, args) -> best-matching signature
Constraints
- Handle exact, widening, and variadic matches
Approach
Score candidate signatures by match quality; pick the best. Discuss ambiguity resolution.
added 6 days ago