Shopify Coding Interview Questions
25 Shopify coding interview problems with full optimal solutions — 4 easy, 20 medium, 1 hard. Every problem ships with multiple approaches (brute-force first, then the optimal), complexity tables for each, company-specific tips on what an Shopify interviewer values, and a FAQ section.
Showing 4 problems of 25
- #1easyfoundational
1. Two Sum
Shopify uses Two Sum as the warm-up before pivoting into a follow-up about hash-map collisions or a real product scenario like 'find two SKUs whose price sums to a coupon target'. The interviewer is grading whether you narrate the O(n^2) -> O(n) tradeoff out loud.
3 free resourcesSolve → - #20easyfoundational
20. Valid Parentheses
Shopify uses Valid Parentheses to test whether you instinctively reach for a stack on a matching-pairs problem. Expect the follow-up to extend to template strings or Liquid-style nested tags — Shopify's storefront templating engine — so the data-structure choice has to scale.
3 free resourcesSolve → - #121easyfoundational
121. Best Time to Buy and Sell Stock
Shopify uses this to test whether you recognize 'max profit so far' as a single-pass DP and avoid the O(n^2) two-loop. The interviewer is grading the explanation of the running-minimum invariant.
3 free resourcesSolve → - #1268easyfrequently asked
1268. Logger Rate Limiter
Shopify's lightest rate-limiting design. Real motivation: throttle warning logs from a misbehaving merchant integration so the log pipeline doesn't get DOSed. The interviewer wants to see a hash-map design and a clear answer on memory growth.
4 free resourcesSolve →
Related interview-prep guides
Hatchways Tech Interview Assessment: The Complete 2026 Guide for Early-Career Devs
A Hatchways assessment is a take-home coding task run through a GitHub repo: you fix a bug, add a feature, review code or record a short answer, then submit a pull request. Reviewers read your code and commits, run automated tests, and can open a cloud deployment of your work. Many employers follow up with a live talk about your decisions.
Replit for Tech Interviews in 2026: The Full-IDE Take-Home Guide
Replit-for-hiring is the full-IDE take-home format. The candidate gets a forked Repl, hours or days to ship a working project, and a commit history the reviewer will scrutinize line-by-line. This guide breaks down what Replit captures, how reviewers read your commit history, and how to prepare for the follow-up walkthrough.
Spark Hire Video Interview Tips for Tech Roles (2026 Guide)
Spark Hire is a mid-market async video interview platform used by 6,000+ employers across tech, healthcare, retail, and education. Candidates record video answers to pre-recorded prompts within configurable time budgets, and hiring teams review the recordings asynchronously. Lighter on AI scoring than HireVue, heavier on human review.