Search
⌘K

Leetcode 2797. Partial Function with Placeholders

Implement a partial-application helper that takes a function and an initial argument list containing special placeholders, and returns a callable that fills those placeholders with arguments supplied later. The challenge is to correctly merge new arguments into placeholder positions (preserving order) and invoke the original function once all placeholders are filled (handling any extra args appropriately).


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.