4 4 votes Someone help with this...I am getting option-b but key is opt-aa)b)c)d) Data Structures linked-list time-complexity ace-test-series + – Prem Sai Kodi 531 views answer comment Share Follow Print See all 4 Comments 4 4 Comments reply Shubham Sharma 2 commented Dec 13, 2025 reply Follow flag Can you explain how are you getting option B? 0 0 replyShare Prem Sai Kodi commented Dec 13, 2025 reply Follow flag O(N+N+N^2) =O(N^2) 0 0 replyShare Shubham Sharma 2 commented Dec 13, 2025 reply Follow flag It is not right to consider Big-O for other operations because the question specifically mentions that we have to take theta for two of them. Since the question involves different notations so our answer should be precise. Ο(N) is for all insert operations at front : that cannot take time more than N. Θ(N) is for search operations for a specific value : that takes time roughly as fast as N. Θ(N^2) is for delete operations from the end : that takes time roughly as fast as N^2. Now if we combine these operations then the total tc will be the dominating term which is Θ(N^2). If we want to search for a "specific" value in a single linked list then will it always take O(N)?. I hope you got the point. 2 2 replyShare Prem Sai Kodi commented Dec 13, 2025 reply Follow flag Understood. Thank you :) 0 0 replyShare Please log in or register to add a comment.
0 0 votes A kalyan_bathina answered Dec 21, 2025 kalyan_bathina comment Share Follow 0 reply Please log in or register to add a comment.