Implement a Generic Array
HANDS-ON PRACTICE
Implement a Generic Array
Implement a generic dynamic array backed by contiguous storage, including growth, mutation, random access, updates, and search.
- Maintain size and capacity, growing storage when full.
- Implement append, indexed insertion, and indexed removal.
- Implement get, set, contains, indexOf, and lastIndexOf.
- Complete the implementation in C, C++, or Java and test boundary indices.