Can treemap have null values?
No Answer is Posted For this Question
Be the First to Post Answer
Explain binary searching and Fibinocci search?
Define level of the tree?
What sort does arrays sort use?
What is heap tree?
How can we remove loops in a linked list? What are the functions of fast and slow pointers?
Explain extended binary tree.
How does quick sort work?
What is the difference between adt and data structure?
In which data structure, elements can be added or removed at either end, but not in the middle?
42 Answers Infosys, NIC, TTA, Wipro,
How would you reverse the characters of an array?
I am given a sequential algorithm that does a routine search on an unordered list. N = 20. The probability that the value x does NOT appear in the list is exactly 60%, and the probability that x DOES appear is 40%. The 3 questions that I could not get were: A) What is the avg number of element comparisons performed when n = 20 and x does NOT appear in the List. (my answer was 20, is this correct?) B) What is the avg number of element comparisons peformed when n = 20 and x DOES appear in the list? C) What is the avg number of element comparisons performed when n = 20. This should be a single number answer they said.
Does arraylist maintain order?