Use app×
QUIZARD
QUIZARD
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
279 views
in Computer by (49.6k points)
closed by

Use the hash function: h(element)= element %11 to store the collection of numbers: 

[44,121,55,33,110,77,22,66] in a hash table. Display the hash table created. 

Search if the values 11,44,88 and 121 are present in the hash table, and display the search results.

1 Answer

+1 vote
by (51.9k points)
selected by
 
Best answer
if position is None:

    print("Number",key,"is not present in the hash table")

else:

    print("Number ",key," present at ",position, " position")

#   searching for 44

key=44

position = hashFind(key,hashTable)

if position is None:

    print("Number",key,"is not present in the hash table")

else:

    print("Number ",key," present at ",position, " position")

#   searching for 88

key=88

position = hashFind(key,hashTable)

if position is None:

    print("Number",key,"is not present in the hash table")

else:

    print("Number ",key," present at ",position, " position")

#   searching for 121

key=121

position = hashFind(key,hashTable)

if position is None:

    print("Number",key,"is not present in the hash table")

else:

    print("Number ",key," present at ",position, " position")

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...