Here are my questionsand my answers. Could you guys/gals tell me if i am right or wrong?
Which array-based operations are O(1)?
inserting item or deleting item in unsorted array
Which linked-list operations are O(1)?
inserting and deleteing item in unsorted lsit
Which array-based operations are O(n)?
traversing through the list or adding or deleting in a sorted array
Which linked-list operations are O(n)?
traversing through the list or adding or deleting in a sorted list
so what do you think i am right or wrong or is there anything else?