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

where are auto variables stored? What are the characteristics of an auto variable?

693


What is a nested formula?

687


Which driver is a pure java driver

1076


Can we replace the struct function in tree syntax with a union?

890


What is meant by type casting?

721






What is the use of putchar function?

732


What are loops c?

712


What is the process of writing the null pointer?

696


What is static function in c?

726


What are the features of c languages?

721


What is the scope of global variable in c?

643


What is structure of c program?

693


Can we access array using pointer in c language?

736


Do you know what are bitwise shift operators in c programming?

693


What is the process to generate random numbers in c programming language?

722