Interview questions with answer breakdowns — Page 3 of 7

Browse page 3 of OfferCC interview question and answer breakdowns with reasoning, implementation details, follow-ups, and public sources.

Interview questions and answers 154

CodingHard

Coding Interview: Implement a Thread-Safe Read-Write Lock

Implement a read-write lock with a mutex and condition variables, then reason about fairness, upgrades, and failure cases.

Open the question and answer
System designHard

System Design Interview: How Would You Design a Multi-Tenant API Rate Limiter?

Derive algorithms, placement, shared state, and failure behavior from tenant fairness, burst traffic, and distributed consistency.

Open the question and answer
BehavioralMedium

Behavioral Interview: Tell Me About a Time You Took Ownership Beyond Your Role

Use STAR to explain how you found an important unowned outcome, took responsibility within clear authority and opportunity-cost boundaries, drove it to closure, and established durable ownership after your temporary role ended.

Open the question and answer
FrontendHard

Frontend Interview: How Do You Debug and Fix React Hydration Mismatches?

Compare the server HTML, the browser-parsed DOM, and the first client render to locate React hydration mismatches, then apply the smallest fix for data, environment, structure, or external mutation.

Open the question and answer
BackendHard

Backend Interview: How Do You Prevent BOLA/IDOR in a Multi-Tenant API?

Use a B2B document service to derive object-level authorization from an authorization tuple, tenant-scoped queries, database defense in depth, and adversarial multi-account tests.

Open the question and answer
DataHard

SQL Interview: Sessionize User Events with a 30-Minute Inactivity Gap

Use PostgreSQL LAG, boundary flags, and a running window sum to sessionize events while handling the exact 30-minute boundary, deterministic ordering, query ranges, late data, and verification.

Open the question and answer
ProductHard

Product Manager Interview: Design a Parking Solution for a Dense City

Turn a broad parking product prompt into a focused pilot by selecting one user and job, separating legal inventory from uncertain availability, and defining a trustworthy guidance, reservation, and measurement strategy.

Open the question and answer
GeneralHard

Linux Interview: Why Is Load Average High When CPU Usage Is Low, and How Do You Diagnose It?

Start with Linux's runnable and uninterruptible-task accounting, then use R/D states, PSI, wchan, and subsystem metrics to diagnose high load with low CPU usage and verify the fix.

Open the question and answer
CodingMedium

Coding interview: How would you implement an O(1) minimum stack?

Maintain a prefix-minimum stack so push, pop, top, and getMin run in O(1), including duplicate minima and empty-stack behavior.

Open the question and answer
System designHard

How do you design a Saga for multi-service order fulfillment?

Decompose a cross-service order workflow into local transactions with an orchestrator, idempotent steps, compensations, and observable eventual consistency.

Open the question and answer
BehavioralHard

How to Answer “Tell Me About a Time You Handled a Dissatisfied Customer”

Use STAR to show how you de-escalated emotion, verified the facts, worked within your authority, offered executable options, closed the loop, and prevented a repeat without blaming the customer or inventing a perfect outcome.

Open the question and answer
FrontendMedium

Frontend Interview: How Do You Build an Accessible Modal Dialog?

Build an accessible modal dialog by defining its semantic, focus, keyboard, dismissal, and layering contracts before choosing a native or custom implementation, then verify the complete focus lifecycle.

Open the question and answer
BackendHard

Backend Interview: How Do You Design an API for Long-Running Operations?

Start with HTTP 202, an operation resource, and an explicit state machine to design a long-running API with idempotent submission, controlled polling, cancellation, durable errors, result retention, and failure recovery.

Open the question and answer
DataHard

How do you build conformal prediction intervals for a regression model?

Build distribution-free prediction intervals from nonconformity scores and a calibration set, including exchangeability, drift, and width limits.

Open the question and answer
ProductMedium

Product Manager Interview: How Would You Design an Offline-First Product?

Frame an offline-first product answer around user segments, critical jobs, local truth, sync expectations, conflict policy, and measurable outcomes.

Open the question and answer
GeneralHard

Linux Interview: Why Do df and du Show Different Disk Usage?

Diagnose a Linux filesystem that is full according to df but much smaller according to du. Learn how to align measurement scope, find deleted-open files and hidden data, separate reserved blocks from the real gap, reclaim space safely, and verify the recovery.

Open the question and answer
CodingMedium

Coding Interview: How Do You Implement a Dynamic Array and Prove Amortized O(1) Append?

Use capacity invariants, geometric growth, and an amortized proof to implement an indexable dynamic array and explain space and worst-case costs.

Open the question and answer
System designHard

System Design Interview: How Would You Reliably Sync a Search Index with CDC?

Design a replayable, observable CDC pipeline from a database WAL to a search index, including snapshot boundaries, ordering, deletes, schema changes, and rebuilds.

Open the question and answer
BehavioralHard

How to Answer “Tell Me About a Time You Faced an Ethical Dilemma”

Use STAR to explain how you identified competing duties, verified the facts, respected authority and confidentiality, chose the lower-harm path, and reported the outcome, cost, and reflection honestly.

Open the question and answer
FrontendMedium

Frontend Interview: Why Is a Huge z-index Still Behind Another Element?

Debug a dropdown that stays behind a header even with a huge z-index by separating stacking-context order, clipping, containing-block geometry, and the browser top layer, then choose the smallest durable fix.

Open the question and answer
BackendHard

Backend Interview: How Do You Store Passwords Securely and Migrate Legacy Hashes?

Start with the offline-cracking threat, then design Argon2id parameters, versioned credentials, login-time migration, inactive-account handling, pepper rotation, and capacity protection.

Open the question and answer
DataHard

Data Engineering Interview: How Would You Design an Apache Iceberg REST Catalog?

Derive the API, commit-conflict handling, authentication, caching, and observability of an Iceberg REST Catalog for multi-engine lakehouse access.

Open the question and answer
ProductHard

Product manager interview: Design a budgeting product for irregular income

Design around variable income, bill priorities, and cash buffers while balancing safety, privacy, trust, and sustainable financial behavior.

Open the question and answer
GeneralHard

Networking Interview: How Does TCP Detect and Recover from Packet Loss?

Use byte sequence numbers, cumulative ACKs, and one fixed loss timeline to derive the triggers, congestion costs, and packet-trace evidence for retransmission timeout, fast retransmit, SACK, and RACK-TLP.

Open the question and answer