DS conversion

1. Sorted array to balanced BSTĀ 

http://leetcode.com/2010/11/convert-sorted-array-into-balanced.html

2. Sorted singly linked list to balanced BST ( This might need some correctness to be done for few edge cases)

http://leetcode.com/2010/11/convert-sorted-list-to-balanced-binary.html

Advertisements