Can a class have a constructor?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More Data Structures Interview Questions

How do you find the complexity of a selection sort?

0 Answers  


Explain different methods in which you can traverse a tree?

0 Answers   NIIT,


Define back edge?

0 Answers  


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.

3 Answers  


Q # 1 : in which graph algorithm do we start finding vertices that should be first in the topological order and then apploy the fact that every vertex must come before its successors in the topolgical order.

3 Answers  






Is binary tree balanced?

0 Answers  


What are lists?

0 Answers  


Is hashset thread safe?

0 Answers  


Write a program using mergesort technique.

0 Answers   iNautix,


What are the applications of linked list?

0 Answers  


What are the drawbacks of array implementation of queue?

0 Answers  


What are the four types of variables?

1 Answers  


Categories