What is the maximum total number of nodes in a tree that has N levels? Note that the root is level (zero)
18 49167How 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 74336A list is ordered from smaller to largest when a sort is called. Which sort would take the longest time to execute?
12 29261A list is ordered from smaller to largest when a sort is called. Which sort would take the shortest time to execute?
17 31879When will you sort an array of pointers to list elements, rather than sorting the elements themselves?
5 22006The 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 33492What 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 63578In which data structure, elements can be added or removed at either end, but not in the middle?
42 99091Which one is faster? A binary search of an orderd set of elements in an array or a sequential search of the elements.
22 44010Post New Data Structures Questions
Can a null element added to a treeset or hashset?
In what areas do data structures applied?
Define outdegree of a graph?
What is the similarity between a Structure, Union and enumeration?
What is unhashable type list?
What are different types of algorithms?
Why null is allowed in hashmap?
What is the difference between data type and data structure?
Which interfaces are implemented by linkedhashset?
How do you sort an arraylist in descending order?
How do I sort a hashmap key?
Can a binary tree be empty?
What is default size of hashmap?
Is hashmap faster than arraylist?
What is raid (redundant array of inexpensive disks)? Explain its level?