Discuss Forum
1. What is the time complexity to count the number of elementts in the liked list?
- A. O(1)
- B. O(1)
- C. O(1)
- D. O(1)
Answer: Option B
Explanation:
Linked List হল একটি Linear Search algorithm যার Complexity হল O(n). সুতরাং O(n) অপশনটি সঠিক।
Post your comments here: