Convert Sorted List to Binary Search Tree

Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.

Solution: Recursion. Bottom-up approach.

Comments

Popular posts from this blog

Maximum Gap

House Robber