Snapchat software engineer interview that went deep on memory fundamentals. One meaty question about stack vs heap that felt straightforward at first but had a lot of surface area once they started poking at Swift specifics.
“I started okay on the basics, allocation is fast on the stack because it's just a pointer bump, heap needs a runtime allocator and can fragment, stack is per-thread so inherently safe, heap is shared and needs synchronization.” The rest of the author's notes on Software Engineer interview at Snap, Technical Phone Screen round, covers how they worked through the question, what the panel pushed back on, and what they would do differently.