What is the maximum total number of nodes in a tree that has N levels? Note that the root is level (zero)
18 52099How many different binary trees and binary search trees can be made from three nodes that contain the key values 1, 2 & 3?
Accenture, Amazon, College School Exams Tests, iGate, Microsoft, TCS, Wipro,
28 77896A list is ordered from smaller to largest when a sort is called. Which sort would take the longest time to execute?
12 31812A list is ordered from smaller to largest when a sort is called. Which sort would take the shortest time to execute?
17 34196When will you sort an array of pointers to list elements, rather than sorting the elements themselves?
5 22887The element being searched for is not found in an array of 100 elements. What is the average number of comparisons needed in a sequential search to determine that the element is not there, if the elements are completely unordered?
11 35477What is the average number of comparisons needed in a sequential search to determine the position of an element in an array of 100 elements, if the elements are ordered from largest to smallest?
19 66722In which data structure, elements can be added or removed at either end, but not in the middle?
42 105661Which one is faster? A binary search of an orderd set of elements in an array or a sequential search of the elements.
22 46606Post New Data Structures Questions
What is difference between hashtable and hashmap?
Explain what are the major data structures used in the rdbms?
Will it create any problem if we add elements with key as user defined object into the treemap?
Why it is said that searching a node in a binary search tree is efficient than that of a simple binary tree?
Does list allow null values?
How do you solve a selection sort?
What is the best case complexity of quicksort?
Is hashmap sorted?
Give a good data structure for having n queues ( n not fixed) in a finite memory segment. You can have some data-structure separate for each queue. Try to use at least 90% of the memory space.
Explain pre-order and in-order tree traversal.
Define balance factor of a node in avl tree?
What is a data structure? What are the types of data structures? Briefly explain them
Does arraylist have index?
Explain the uses of binary tree.
What is an ordered map?