Compare Stack and Heap Memory and Probe Stack Direction
Company: Hudson River Trading
Role: Software Engineer
Category: Software Engineering Fundamentals
Difficulty: medium
Interview Round: Technical Screen
Overview: Compare automatic stack storage with dynamic heap allocation in C++, including lifetime, ownership, cost, size, and failure modes. Then design a nested-call address probe that separates ABI observations from language guarantees and accounts for compiler optimizations.