What is ascii sort order?
No Answer is Posted For this Question
Be the First to Post Answer
How would you reverse the characters of an array?
Is hashmap a collection?
What is the complexity of adding an element to the heap?
Define data type and what are the types of data type?
Is binary tree a binary search tree?
Given M x N matrix with sorted elements row wise and column wise, find elements?
do records fall under linear or non linear data structures?
Why is sorting important?
Write code for reversing a linked list.
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.
Is hashset synchronized?
How would you sort a linked list?