Shopify·Software Engineer·Take-home Assignment
May 2026
Shopify software engineering interview that was basically a full mini-project: build a local URL shortener from scratch, covering encoding, persistence, memory, and tests. No vague questions, just a concrete spec and a lot of ground to cover.
- Design and implement a local URL shortener tool with input validation, short code generation, in-memory storage with JSON file persistence, and a full test suite targeting 90%+ coverage.
- How would you handle hash collisions in a short URL encoding scheme, and how would you test for them?
- Estimate how many URL mappings an in-memory hash map can hold on a typical machine, and describe how you'd scale beyond a single process.
- How would you persist the in-memory URL map across restarts without using a database?
“This was a lot to hold in your head at once.” The rest of the author's notes on Software Engineer interview at Shopify, Take-home Assignment round, covers how they worked through the question, what the panel pushed back on, and what they would do differently.
View Post