Complexity of different operations on different data structures according to the Big-O notation
问题 I was reading about big O notation in java programming. I found the following table it shows different big O for different data structures. http://bigocheatsheet.com/ My questions are: If I want to delete an item in an array, is it O(n^2) ? (search and delete) If I want to delete an item in a stack, is it O(n) ? Which one is more effective, is it a single linked list or double single list? In what case is that the insert operation is O(1) or O(n) in a hash table? If I want to delete an item