Professional KnowledgeHardIBPS SO IT
Insert keys 12, 22, 32, 42 into a hash table of size 10 with h(k) = k mod 10 and linear probing. Position of 42 is:
- A. 2
- B. 5
- C. 4
- D. 3
Correct answer: B. 5
12 at 2, 22 at 3, 32 at 4, 42 finds 2, 3, 4 occupied and goes to 5.
Practise more IT Officer Professional Knowledge (IBPS SO) questionsIT Officer Professional Knowledge (IBPS SO): notes and key points
More IT Officer Professional Knowledge (IBPS SO) questions
- Time complexity of finding the k-th smallest element in an unsorted array in the worst case using median-of-medians is:
- Recurrence T(n) = 3T(n/2) + n solves to:
- Which sorting algorithm has O(n log n) worst case and is not stable?
- Which algorithm design technique does Dijkstra's single-source shortest path use?
- Floyd-Warshall algorithm complexity for V vertices is:
- In a connected weighted graph with distinct edge weights, the minimum spanning tree is: