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 linker error?

614


Why does the call char scanf work?

620


What is 2 d array in c?

558


What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?

625


What is a constant?

635






Mention four important string handling functions in c languages .

630


Give differences between - new and malloc() , delete and free() ?

612


Find MAXIMUM of three distinct integers using a single C statement

624


In a switch statement, what will happen if a break statement is omitted?

602


Do array subscripts always start with zero?

786


Can you write a programmer for FACTORIAL using recursion?

614


what are enumerations in C

724


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

770


What is a sequential access file?

648


How can you draw circles in C?

625