Question DSA-ARR-0026
EasyWhat is the time complexity of removing the last element of a dynamic array?
- A.
O(n)
- B.
O(n²)
- 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
What is the time complexity of removing the last element of a dynamic array?
O(n)
O(n²)
Sign up free to see the answer and a step-by-step explanation.
O(log n)
O(1)