Shopify Coding & Algorithms Interview Questions
Practice the exact questions companies are asking right now.
Identify Pirate Themes Using Similarity Score Algorithm
Scenario Engineering wants an automated way to spot custom themes that are probably just pirate themes in disguise. Question Write Python that takes t...
Implement a multi-rover Mars controller
Problem Build a small command-line “Mars Rover Controller” program. Single rover (v1) A rover starts at coordinate (0, 0) on an infinite 2D grid and i...
Design a robot movement command system
Robot Movement (Pair Programming) You are given an empty starter repository (only a README). Implement a small, testable robot movement module that ca...
Infer and justify non-trivial sequence patterns
Pattern Recognition: Next Terms and Missing Value Identify the rule governing each sequence or row and compute the missing value(s). Justify each answ...
Implement cache and gift assignment system
You are given two independent programming problems. --- Problem 1: Implement a bounded key–value cache Design a data structure that stores key–value p...
Implement an interactive CLI class with tests
Design and implement a command-line interactive application as a single class using OOP principles. The program should support commands: add <key> <va...
Implement an LRU Cache
Problem: LRU Cache (LeetCode 146) Design and implement a Least Recently Used (LRU) Cache that supports the following operations in average O(1) time. ...
Calculate Jaccard Similarity Score for Two String Lists
Scenario During pair programming, the interviewer asks you to compare two lists of merchant tags and quantify their similarity. Question Implement a P...
Implement Cosine Similarity Function for String Vectors
Scenario Technical phone screen in Python; assess ability to implement similarity metric. Question Implement a Python function that computes the cosin...
Identify Pirate-Themed Custom Themes Using Jaccard Similarity
Scenario Engineering receives two lists and must identify custom themes that look like Pirate themes. Question a) Write a Python function that compute...