4 ms·
It would be more difficult to read and maintain any solution to many problems where you are operating on nested objects, especially if the nesting is more than
by odonnellryan 6y ago
It would be more difficult to read and maintain any solution to many problems where you are operating on nested objects, especially if the nesting is more than a few levels deep or even arbitrarily deep, without using recursion. Also generating such objects, such as with nested parentheses, is easier as well.