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

How can you determine the size of an allocated portion of memory?

736


how can f be used for both float and double arguments in printf? Are not they different types?

602


What is structure packing in c?

601


Explain the difference between structs and unions in c?

570


What is a void * in c?

589






What is the purpose of ftell?

595


Why doesnt this code work?

610


can anyone suggest some site name..where i can get some good data structure puzzles???

1639


a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none

712


please give me some tips for the placement in the TCS.

1627


What are the 32 keywords in c?

625


Is it possible to have a function as a parameter in another function?

594


Explain the concept and use of type void.

620


i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical

1836


What are qualifiers in c?

568