johnykov
johnykov

Reputation: 182

lowest common ancestor with scala fold?

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

Answers (0)

Related Questions