Question DSA-LL-0046
MediumWhat is the time complexity of inserting at the head of a singly linked list?
- A.
O(n²)
- B.
O(n)
- C.
O(1)
- D.
O(log n)
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
Linked Lists question
What is the time complexity of inserting at the head of a singly linked list?
O(n²)
O(n)
O(1)
O(log n)
Sign up free to see the answer and a step-by-step explanation.