I got a task on interview to calculate diameter of given binary tree. While I don’t like to solve abstract problems ( I have a lot of problems to solve in my projects already) I’ve found this one particularly interesting as it actually has practical value in one of algorithms on DOM tree (that is…
Question on interview: diameter of binary tree.
Posted on