Professional KnowledgeHardIBPS SO IT
The time complexity of inserting at the head of a singly linked list is:
- A. O(n)
- B. O(1)
- C. O(log n)
- D. O(n log n)
Correct answer: B. O(1)
Only a couple of pointer updates are needed.
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 to build a BST from n keys already sorted in ascending order by successive insertion is:
- 0/1 knapsack with capacity W and n items by dynamic programming has complexity:
- Edit distance between kitten and sitting is:
- Which problem is NP-complete?
- Regular expression (a+b)abb corresponds to a DFA over {a,b} with the minimum number of states equal to:
- Which of these is a context-free but not a regular language?