1.find the second maximum in an array?
2.how do you create hash table in c?
3.what is hash collision

Answer Posted / steven le

1. Selection sort with second pass
2. Basically we create a two dimension array (key, value)
and then we define a hash function to determine position of
elements when we insert/delete.
3. When two elements insert to the same spot in a hash
table, we have a hash collision. H(x1) = H(x2) = y

Is This Answer Correct ?    5 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between printf and scanf in c?

987


What is the difference between struct and union in C?

854


What should malloc(0) do? Return a null pointer or a pointer to 0 bytes?

798


Tell us the use of fflush() function in c language?

864


List the variables are used for writing doubly linked list program.

1799






Differentiate call by value and call by reference?

734


What is LINKED LIST? How can you access the last element in a linked list?

809


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

2934


hi send me sample aptitude papers of cts?

1848


in linking some of os executables are linking name some of them

1873


How to implement a packet in C

2592


What is sizeof c?

802


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

1183


Describe how arrays can be passed to a user defined function

986


What is use of integral promotions in c?

860