Complexity of Array Operations
问题 So one of the topics in my comp sci class is concerning time complexity and using arrays and linked lists as a good way to compare certain operations and what container is better at doing so, so you can choose the appropiate data structure. I understand the reasoning behind most of the operations but I'm unsure about one and that is inserting and appending in an array. The worst case scenario for both of these is O(n). I believe I understand why inserting is O(n) because worst case, you