What is the minimum possible height (counting edges) of a binary tree with 15 nodes?
Programming and Data Structures
C programming, recursion, arrays, stacks, queues, linked lists, trees, heaps and hashing. 8 questions with worked solutions.
How many structurally distinct binary search trees can be built from the keys ?
What is the postfix form of ?
What is the maximum number of nodes in a binary tree of height 4, where a single node has height 0?
Keys 12, 22 and 32 are inserted in that order into an empty hash table of size 10 with and linear probing. At which index is 32 stored?
What does f(5) return?
int f(int n) {
if (n <= 1) return 1;
return f(n - 1) + f(n - 2);
}What is the time complexity of building a binary heap from unsorted elements using bottom-up heapify?
Which operations take time on a singly linked list that keeps both head and tail pointers?
Select every correct option. There is no partial credit.