Question DSA-CX-0074
HardA splay tree performs m operations on n nodes. What is the amortised cost per operation?
- A.
O(m)
- 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
Complexity Analysis question
A splay tree performs m operations on n nodes. What is the amortised cost per operation?
O(m)
O(n)
Sign up free to see the answer and a step-by-step explanation.
O(log n)
O(1)