Frage im Vorstellungsgespräch bei ThousandEyes

Implement a generic function to reduce a tree (should work with any function callback)

Antwort im Vorstellungsgespräch

Anonym

19. Okt. 2017

If you are doing javascript then just wrap the `Array.reduce` function and expose the `accumulator` and `initialValue` as the external arguments. Then call the function recursively.