Reputation: 182
I've been given a question on interview of desribing a method of finding LCA on binary tree. I resp with my idea. After all interviewer said it can be done with scala fold function... but I don't know how, any ideas?
Upvotes: 1
Views: 448