Search
⌘K

Leetcode 2690. Infinite Method Object

Design an object that allows calling any (unknown) method name repeatedly in a chain—each call returns the same object so chaining can continue indefinitely—and that produces a final result (e.g., when coerced or by a terminating call) based on the recorded calls. The core challenge is handling dynamic method names and enabling infinite, chainable invocation.


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.