Leetcode 2629. Function Composition
Given an array of unary integer functions, return a single function that composes them right-to-left (i.e., f(g(h(x)))) and applies to an integer input; if the array is empty return the identity function f(x)=x.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.