All companies
Datadog logo

Datadog

5 questions · Coding · System design

Design and implement an LRU cache with O(1) get and put.

Coding

ApproachCombine a hash map with a doubly linked list; move touched nodes to the front, evict from the tail.

They look forComposing data structures to hit tight time bounds and getting the eviction bookkeeping right.

Count the number of islands in a 2D grid of land and water.

Coding

ApproachFlood-fill each unvisited land cell with BFS/DFS and mark visited; count how many fills you start.

They look forGraph traversal on a grid, visited-state management, and complexity analysis.

Design a rate limiter for a public API.

System design

ApproachCompare token bucket vs. sliding window, where state lives (per-node vs. Redis), and behavior under bursts.

They look forAlgorithm choice, distributed state, and failure/consistency trade-offs.

Design a real-time chat / messaging system.

System design

ApproachCover connection handling (WebSocket), delivery/ordering guarantees, storage, and presence.

They look forReal-time delivery, ordering, and durability under scale.

Tell me about a time you failed and what you changed afterward.

Behavioral

ApproachPick a real failure, own it without blaming others, and show the concrete lesson you applied later.

They look forSelf-awareness, accountability, and growth.

Rehearse these out loud

Practice your answers privately, with coaching notes you can revise against. Nobody else sees them.

Practice free
Datadog Interview Questions | Novatypalcv