Tags » Linked List
Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.
Thoughts: use in order and construct binary search tree recursively… 99 more words
Problem: Write an efficient program for printing k largest elements in an array. Elements in array can be in any order. For example, if given array is and you are asked for the largest 3 elements i.e., k = 3 then your program should print 51, 32 and 20. 262 more words