Reddit software engineer interview questions and preparation

Reddit software engineer interview questions blend classic coding with the problems of a site built on communities: nested comment threads, voting, ranking posts by votes and age, feeds across many subreddits, moderation and spam. Candidates generally describe a recruiter call, a technical screen and a loop of coding, system design for experienced hires and behavioral questions, with differences by team, so ask your recruiter for the format and expect community and safety to come up.

By Published 6 min read

What to expect from the loop

Reddit's process changes with team (consumer apps, ads, safety, infrastructure, machine learning) and level. Candidates tend to describe something close to this:

  1. Recruiter conversationWhich part of Reddit interests you, how you use the site, experience and timing.
  2. Technical screenLive coding on a shared editor, often one problem with an extension.
  3. LoopCommonly two or more coding interviews, system design for experienced engineers and a behavioral interview with a manager. Some teams add a domain conversation, for example on ads or safety.
  4. CloseLevel and team confirmed. Ask about the team's on-call rotation and how big news events affect it.

Coding questions set in communities

These look like product code because they are close to it. Ask about edge cases a real site would hit: deleted parents, ties, users who change their vote, enormous threads.

Community-flavored coding questions
QuestionSkill testedWhat a strong answer shows
Turn a flat list of comments with parent ids into a nested thread, sorted by score at each level, with a depth limit.Trees from flat data.One pass to index by id, one to attach children, recursive sorting and a stub where depth is cut.
Show the best comments of a huge thread within a fixed budget and add load-more markers for the rest.Priority traversal.A heap over candidates by score, children added only when the parent is shown and counts for hidden replies.
Track net votes when users can upvote, downvote, switch or undo.State per user and item.A map of each user's current vote, score changed by the difference and repeats ignored.
Write a ranking score that favors new posts with many votes and lets old posts fade.Modeling with math.Log of net votes so the first hundred matter more than the next thousand, plus a term that grows with time.
Limit how often a user can post in one community.Rate limiting.A per-user, per-community window and a clear message with the wait time.
Flag posts where an unusual share of votes arrives within minutes from new accounts.Windowed anomaly checks.Counts by account age within a time window compared against the post's usual pattern.
Recommend communities based on overlapping members.Similarity at scale.Co-membership counts normalized by size, so giant communities do not dominate every list.
Mask spoiler text between markers and report unbalanced markers.Parsing.A scan with a stack or state flag, escapes handled and a precise error position.
Community-flavored coding questions. Scroll sideways on a small screen.
// rows: [{ id, parent, score }], parent null for top-level comments
function buildThread(rows, maxDepth = 8) {
  const byId = new Map(rows.map((r) => [r.id, { ...r, replies: [] }]));
  const roots = [];
  for (const node of byId.values()) {
    if (node.parent === null) roots.push(node);
    else byId.get(node.parent)?.replies.push(node);
    // a parent that is missing (removed, not loaded) drops the subtree: say so
  }
  const tidy = (nodes, depth) => {
    nodes.sort((a, b) => b.score - a.score || a.id - b.id);
    for (const n of nodes) {
      if (depth + 1 >= maxDepth) {
        n.more = n.replies.length; // "continue this thread" stub
        n.replies = [];
      } else {
        tidy(n.replies, depth + 1);
      }
    }
    return nodes;
  };
  return tidy(roots, 0);
}
Building a sorted comment thread with a depth limit. Run with node against hand cases and random threads.

Talk through the missing-parent case without being asked. On a real site a removed comment usually stays as a placeholder so its replies still show, which is a product decision as much as a code one. Also mention that very deep recursion could overflow the stack, and an explicit stack avoids that.

Ranking, briefly

Reddit's early code was published, and its well-known hot ranking added the base-10 log of net votes to a term that grows steadily with submission time. The effect: each tenfold increase in votes buys a fixed amount of extra time near the top, so older posts need far more votes to stay there. You do not need the exact constants, but you should be able to explain why a log, why time is added rather than divided, and how you would test a new ranking (an experiment with metrics for engagement and for reports or hides).

  • Why rank comments differently from posts? Comments compete within one thread, where age matters less than confidence in quality. Sorting by a lower bound on the share of upvotes avoids rewarding a comment with one vote.
  • How would you stop a ranking from being gamed? Discount votes from new or linked accounts, look for coordinated timing and keep some signals private.
  • What would you measure after changing the home feed ranking? Return visits, time on comments, posts and comments created, and negative signals like hides and reports.

System design prompts

Feeds and fan-out ideas from the Twitter system design carry over, but a Reddit feed is assembled from communities rather than people, and ranking changes every minute. The rate limiter design helps with posting and voting abuse.

Design questions and the signal they test
QuestionSkill testedWhat a strong answer shows
Design the home feed built from the communities a user joined.Feed assembly.Per-community ranked lists kept fresh, merged per user at read time and cached briefly.
Design voting for a post receiving thousands of votes per second.Hot keys.Votes written to a log, counts aggregated in batches or sharded counters, and one user's vote stored for idempotency.
Design a comment page for a thread with a huge number of comments.Partial loading.Top-level comments paged, replies loaded on demand and precomputed sort orders for popular threads.
Design moderation tools: a queue of reported items and automatic rules per community.Tools for people.Rules evaluated on new content, a prioritized queue, audit logs and actions that apply across the site quickly.
Design live comment updates during a big sports event.Real-time delivery.Push over persistent connections, batching updates every few seconds and a fallback to polling.
Design search across posts and comments.Indexing and freshness.An inverted index updated from an event stream, community filters and removal of deleted content.
Design a popular feed across all communities.Cross-community ranking.Normalization by community size, safety filters and a cap per community so a few do not fill the page.
Design reply notifications on mobile and web.Notification pipelines.Events into a queue, per-user preferences and limits, and grouping several replies into one message.
Design questions and the signal they test. Scroll sideways on a small screen.

Behavioral questions

Behavioral prompts and what they reward
QuestionSkill testedWhat a strong answer shows
How do you use Reddit, and what would you change?Product sense.Communities you know, a specific pain point and a careful idea.
Tell me about building something for users who were not like you.Empathy.How you learned their needs, ideally by talking to them, and what changed.
Describe a time your work had an unintended effect on users.Ownership.How you noticed, the fix and what you now check before launch.
Tell me about shipping a change some vocal users disliked.Handling feedback.Listening, separating volume from substance and what you adjusted.
Describe a hard call between speed and safety.Judgment.The risks, who you consulted and the decision.
Tell me about a time you improved a team's process.Initiative.The problem, your change and evidence it helped.
Behavioral prompts and what they reward. Scroll sideways on a small screen.

Fictional example

Answering the hot-post vote question
Interviewer
A post hits the front page and votes pour in. Your vote table has one row per post. What breaks?
Candidate
That one row becomes a hot spot: every vote takes a lock on it. I would store each user's vote separately for correctness, then update the count asynchronously.
Candidate
Votes go into a log partitioned by post. A consumer adds them up every second or so and writes the new total. For a really hot post I can split the counter into shards and sum them on read.
Interviewer
So the score shown is slightly stale?
Candidate
By a second or two, which users will not notice. Their own vote should show instantly, so the client updates it locally.

Prep plan

  • Trees and heaps first. Build the comment thread, then the budgeted top-comments view, then a vote tracker, timing yourself.
  • Know one ranking formula well enough to defend it, and one way to test a ranking change safely.
  • Design three systems aloud: the community feed, hot-post voting and the moderation queue.
  • Spend an evening as a moderator would, reading rules pages and mod tools posts, so your design answers include the people who keep communities running.

Also in this set: the Pinterest software engineer guide for feed ranking and images, the DoorDash guide for a marketplace with three kinds of users, and the Palantir guide for a loop built around open-ended problems.

To rehearse, run a mock interview on a call and let Natively write the transcript on your computer; reading it later shows whether you mentioned moderators or only servers. Screenshot a practice question, such as the comment tree, and Natively reads it and can suggest an approach and edge cases to hold against your own. Give it your résumé and the job post (Pro or the free trial) and behavioral practice suggestions come from your own experience. See how Natively helps with interviews.

Questions people ask

What coding questions does Reddit ask?

Common types include building a nested comment thread from flat rows, showing top comments within a budget, tracking votes users can change, a ranking score using votes and age, and rate limits.

What is the Reddit software engineer interview process?

Candidates generally describe a recruiter conversation, a live technical screen and a loop of coding interviews, system design for experienced hires and a behavioral interview. It varies by team.

What system design questions does Reddit ask?

The community feed, voting on very hot posts, huge comment threads, moderation queues and rules, live comment updates, search, a cross-community popular feed and reply notifications.

How should I prepare for a Reddit interview?

Practice trees and heaps through comment problems, learn one ranking formula well, design the feed and hot-post voting aloud, and include moderators in your design answers.

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.

Keep reading

Put it on your own machine.

A live-conversation assistant that runs locally. Your conversations stay on your machine.

macOS 12+ · Windows 10/11

© 2026 Natively AI Private Limited

Source-available under the Natively Personal Use Source License v1.0 · IP geolocation by DB-IP