Array Operations
The cost depends on the operation. Indexing is direct. Search, insert, and delete shift or scan other items.
Costs
| Category | Data Structure |
| Difficulty | Easy |
| Index | O(1) |
| Linear search | O(n) |
| Insert or delete at an index | O(n) |
Questions
What is Array Operations?
The cost depends on the operation. Indexing is direct. Search, insert, and delete shift or scan other items.
Where do I practice it?
DSA Master keeps challenges and progress on the phone. This page is the idea and the costs.