Shopee software engineer interview questions on marketplace coding and design
Shopee software engineer interview questions usually center on data structures and algorithms solved live, plus, for experienced hires, system design for a large online marketplace: product search, listings from many sellers, checkout, flash sales and order tracking. Shopee is the e-commerce business of Sea, whose published values are We Serve, We Adapt, We Run, We Commit and We Stay Humble, so expect behavioral questions about customers, change and speed as well.
By Evin JohnPublished 9 min read
Shopee inside Sea
Sea describes itself as a global technology company whose mission is to better the lives of consumers and small businesses with technology. On Sea's site, Shopee is the e-commerce product, with the line "Shop online anytime, anywhere", next to Garena for digital entertainment and Monee for digital financial services. That pairing of shoppers and small sellers is the best lens for the interview. Many of the hard engineering problems sit where millions of buyers meet a long tail of merchants who need simple tools.
Shopee's own careers site loads its content with JavaScript, and when we fetched it in December 2026 we could read only the page title. So this guide does not claim which markets a given team serves or how teams are organized. Ask your recruiter which product area and which office the role sits in.
- Buyer experience: home feed, search, product pages, carts and checkout.
- Seller platform: listing tools, inventory, promotions, order handling and seller analytics.
- Payments and vouchers: applying discounts correctly, handling payment callbacks and refunds.
- Logistics data: shipment creation, tracking events and delivery estimates across carriers.
- Infrastructure and data: the services, storage, caches and pipelines under all of it.
How the Shopee interview process is often described
There is no official engineering loop we could cite, so this is the pattern candidates often report, not a promise. Stages can be merged, skipped or reordered by team, level and location.
- Online assessment (common for graduates)Many early-career candidates mention a timed coding test before any live interview. Experienced hires may skip it.
- Technical interviewsUsually one or more live sessions in a shared editor, each with a data structures and algorithms problem plus questions about your projects and CS fundamentals.
- Design or deeper technical roundFor experienced roles, candidates often describe a system design conversation or a deep dive on something they built.
- Manager or HR conversationMotivation, teamwork and how you handle pressure and change, often closing the process.
Since the format is unconfirmed, ask two questions early: will you code in a shared editor or on a test platform, and is there a design round at your level? The answers decide how to split your practice time.
Data structures and algorithms questions
Expect to explain complexity, write runnable code and test it by hand. The prompts below are our own, written to resemble marketplace work. They are not leaked Shopee questions.
| Question | What it tests | What a strong answer shows |
|---|---|---|
| Reserve flash-sale stock for buyers with a per-buyer purchase limit, and make retried requests safe. | State, limits and idempotency | One check-and-update step, request IDs remembered, and no stock lost or oversold. |
| Given vouchers with minimum spend and caps, pick the best voucher for a cart. | Greedy choice and edge cases | Each voucher evaluated exactly, ties broken by a stated rule, and prices kept in integer cents. |
| Return the K best-selling items per category from a list of orders. | Hash maps and heaps | Counting first, then a size-K heap per category instead of sorting everything. |
| Autocomplete product names from a prefix, ranked by popularity. | Tries | Top results cached at each node, and the memory cost stated. |
| Merge sorted search results from several shards into one ranked page. | K-way merge | A min-heap of shard cursors and correct pagination with an offset. |
| Validate order state transitions such as paid, shipped, delivered and refunded. | State machines | A transition table, rejected illegal moves and a note on concurrent updates. |
| Find duplicate listings where titles differ only in case, spacing or punctuation. | String normalization and hashing | A clear normal form, grouping by key, and awareness of near-duplicates that hashing misses. |
| Given hourly page views for items, find the longest run of rising views for each item. | Single pass over arrays | One linear scan per item and correct handling of equal values. |
| Compute shipping fee tiers for a cart split across sellers. | Grouping and arithmetic | Group by seller, apply rules per group, and test an empty cart. |
| Detect whether a seller's category tree has a cycle after an edit. | Graph traversal | DFS with visit states and a clear error for the editor. |
Here is the first prompt in JavaScript, as a single-process first pass. The idea to say out loud: decide everything about one request in one place, and remember request IDs so a retry returns the earlier answer instead of taking stock twice.
function createSale(stock, perBuyerLimit) {
const boughtBy = new Map(); // buyer -> units reserved
const seen = new Map(); // requestId -> earlier result
return function reserve(requestId, buyer, qty) {
if (seen.has(requestId)) return seen.get(requestId); // retry: same answer
let result;
const already = boughtBy.get(buyer) || 0;
if (qty <= 0) result = { ok: false, reason: "bad quantity" };
else if (already + qty > perBuyerLimit) result = { ok: false, reason: "limit" };
else if (qty > stock) result = { ok: false, reason: "sold out" };
else {
stock -= qty;
boughtBy.set(buyer, already + qty);
result = { ok: true, left: stock };
}
seen.set(requestId, result);
return result;
};
}
const reserve = createSale(3, 2);
console.assert(reserve("r1", "ana", 2).ok === true);
console.assert(reserve("r1", "ana", 2).left === 1); // retried, not charged twice
console.assert(reserve("r2", "ana", 1).reason === "limit"); // would exceed 2
console.assert(reserve("r3", "ben", 2).reason === "sold out");
console.assert(reserve("r4", "ben", 1).left === 0);
console.log("ok");Follow-ups you can expect: how this works across many servers (an atomic decrement in a shared store, or a queue per item), how long to keep request IDs, and what the buyer sees when payment fails after stock was reserved.
System design questions for a marketplace
Start with who uses the system and what must never go wrong. For a shopping platform that is usually money, stock and order status. Then sketch, size and refine, as in our system design interview framework.
- Design a flash sale that opens at a fixed time for a popular item. Traffic that arrives in one second, pre-warmed caches, a waiting room or token gate, stock held in memory with durable writes, and graceful sold-out pages.
- Design product search with filters and ranking. Indexing listings from many sellers, query parsing, faceted filters, ranking signals and freshness when prices change. The search autocomplete design helps with the typing part.
- Design the checkout flow for a cart with items from several sellers. One payment, several orders, voucher application, payment callbacks and partial refunds.
- Design a seller listing service. Image upload, moderation for prohibited items, variants such as size and color, and bulk edits.
- Design order tracking across several delivery carriers. Normalizing carrier events, ordering events that arrive late, and push updates to buyers. See the notification system design.
- Design a voucher and promotions service. Rules, budgets, per-user limits, abuse prevention and fast evaluation at checkout.
- How would you cache product pages when prices and stock change often? Split static content from volatile fields, short time-to-live on stock, and invalidation on edits. The caching guide covers the options.
- Design a recommendation feed for the home screen. Candidate generation, ranking, cold start for new users and a fallback list.
- How would you store orders so both buyers and sellers can query them fast? Partitioning choices and secondary indexes or a separate read model. Compare sharding.
- Design chat between buyers and sellers. Delivery, ordering, unread counts and spam controls.
| Question | What it tests | What a strong answer shows |
|---|---|---|
| How do you prevent overselling when two buyers take the last unit at once? | Concurrency | Atomic operations or row locks, and why a read-then-write in app code is unsafe. |
| What is the difference between a process and a thread? | Operating systems | Memory sharing, cost of switching and when each fits. |
| How does a database index speed up a query, and when does it hurt? | Databases | B-tree lookups, write cost and low-selectivity columns. |
| What happens when you type a URL and press Enter? | Networking | DNS, TCP and TLS, HTTP, caching layers and rendering, at the right depth. |
| When would you pick a message queue between checkout and fulfillment? | Architecture | Decoupling and spikes, with retries and duplicate handling explained. |
| How would you debug a sudden rise in checkout errors during a sale? | Production judgment | Recent changes, error breakdown by dependency, and a rollback or feature flag. |
Behavioral questions through Sea's values
Sea publishes five values. We Serve says customers are the sole arbiter of the value of its products. We Adapt is about embracing change. We Run speaks of moving faster, better and with more urgency each day. We Commit covers commitment to customers, partners and each other. We Stay Humble is about keeping humility while aiming higher. These prompts are ours, built on those lines.
- Tell me about a feature you changed after seeing how customers or sellers really used it. We Serve. Show the signal and the change.
- Describe a time requirements shifted late in a project. We Adapt. What did you drop, keep and communicate?
- Tell me about shipping something under a tight deadline without breaking production. We Run. Speed plus the safeguard you kept.
- When did you keep a commitment to another team that was costly for you? We Commit.
- Tell me about a mistake you made in production and how you handled it. We Stay Humble. Own it plainly.
- Why e-commerce, and why Shopee? Refer to a buyer or seller problem you find interesting.
- How do you work with product managers and operations staff who are not engineers? Marketplaces depend on those partnerships.
- Describe a time you served small business users. Sea's mission names small businesses directly.
A fictional exchange from a design round
Fictional example
- Interviewer
- A sale on one phone model opens at noon. Traffic will be far above normal for a few seconds. Walk me through it.
- Candidate
- The product page itself is mostly static, so it is served from a CDN and cache before noon. The only hot path is the buy button. I would put a token gate in front of it, handing out roughly as many tokens as units plus a margin, so most requests get a fast sold-out answer without touching the database.
- Candidate
- Token holders reserve stock with an atomic decrement in an in-memory store and get a short payment window. If payment does not complete, a timer returns the unit. Orders are written durably through a queue so the database sees a steady flow, not a spike.
- Interviewer
- How do you know it went well?
- Candidate
- Units sold against units reserved, payment completion rate, error rate on the buy path, and zero oversold units in the reconciliation job after the sale.
Ten days of focused practice
- Days 1 to 4Two timed problems a day: heaps, tries, k-way merges, state machines and concurrency-safe counters. Explain complexity every time.
- Days 5 to 7Rehearse a flash sale, product search and multi-seller checkout aloud, each in about 35 minutes.
- Days 8 and 9Review OS, networking and database basics, since fundamentals questions often appear in technical rounds.
- Day 10Write one short story for each of Sea's five values and run a full mock.
For a superapp with rides, food and payments see the Grab software engineer guide, and for a Japanese ecosystem of many services see the Rakuten software engineer guide. The Flipkart software engineer guide covers another large e-commerce loop.
Use Natively while you rehearse. Natively's interview assistant listens to a mock design round on your Mac or Windows computer, transcribes it as you talk and can suggest answers, and it saves the transcript and notes for review, which makes it easy to spot where you skipped reconciliation or failure handling. For coding drills, a screenshot of the problem is enough for it to read the task. Pro or the free trial adds your résumé and the job posting so its suggestions use your own projects.
Questions people ask
What is the Shopee software engineer interview process?
Shopee does not publish its engineering steps on a page we could read. Candidates often report an online coding test for graduates, live technical interviews on algorithms and fundamentals, a design round for experienced roles, and a manager or HR conversation.
What coding questions does Shopee ask?
Expect data structures and algorithms solved live. Good practice prompts have a marketplace flavor: stock reservation with limits, vouchers, top sellers with heaps, autocomplete with tries and order state machines.
What system design questions suit a Shopee interview?
A flash sale, product search with filters, checkout for carts with several sellers, a voucher service and order tracking across carriers are all realistic practice topics.
What values does Shopee look for?
Shopee is part of Sea, which publishes five values: We Serve, We Adapt, We Run, We Commit and We Stay Humble. Prepare one short story for each.
Where to go next
Practice with the same assistant you would use on a call: it listens, transcribes and suggests answers from your own resume and the job description.
Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.
