The solution is definitely not language/library trivia. In fact I will accept a solution in any language if you don’t use iterative constructs and you don’t rely on tail call optimization to limit your asymptotic space usage.
The solution is definitely not language/library trivia. In fact I will accept a solution in any language if you don’t use iterative constructs and you don’t rely on tail call optimization to limit your asymptotic space usage.