Question DSA-ARR-0039
EasyWhich operation is O(1) on an array but O(n) on a linked list?
- A.
Counting elements one by one
- B.
Traversing all elements
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Arrays question
Which operation is O(1) on an array but O(n) on a linked list?
Counting elements one by one
Traversing all elements
Sign up free to see the answer and a step-by-step explanation.
Inserting at the front
Accessing an element by its index