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 are high level languages like C and FORTRAN also known as?

680


What does the && operator do in a program code?

694


Explain what is the general form of a c program?

618


What is pass by reference in functions?

319


Can a pointer be static?

615






Do you have any idea about the use of "auto" keyword?

660


What is the purpose of 'register' keyword?

683


What are the 4 types of organizational structures?

620


What are the 5 data types?

596


What is dynamic memory allocation?

803


Do you know what are the properties of union in c?

577


What is #define used for in c?

609


How can I generate floating-point random numbers?

600


What is an operator?

655


What are the uses of a pointer?

675