Object-Oriented Programming · Point72 · Hard
Design a template class Array that is fast and supports dynamic growth. The design has two parts. Part 1: Core Design Stable addresses: Once an element is created, its memory address must remain fixed for the lifetime of the array. Non-contiguous storage: Elements may reside in separate memory blocks; the array must support dynamic expansion without requiring a single contiguous allocation. Type requirement: T must be "0-initializable" — a block of zeroed memory is a valid…
Checking your access…