Problem database last updated: June 20, 2025

DDatadog logo

Datadog Coding Interview Questions

17 problems · 8 Easy, 7 Medium, 2 Hard · Ranked #105 of 458

Difficulty breakdown

8 Easy

47% · avg 23%

7 Medium

41% · avg 59%

2 Hard

12% · avg 18%

Top topics

array
64.7%
hash-table
35.3%1.6x
string
35.3%
depth-first-search
29.4%3.2x
dynamic-programming
23.5%
tree
23.5%4.2x

Interview profile

Based on 17 reported problems, Datadog interviews are in line with industry averages - 12% Hard vs 18% overall.

Compared to the industry average, Datadog puts unusual emphasis on tree (23.5% of problems, 4.2x the industry average), binary-tree (17.6% of problems, 3.6x the industry average), counting (11.8% of problems, 3.5x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are array (64.7%), hash-table (35.3%), string (35.3%), depth-first-search (29.4%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 17 problems

Coin Change

Solve

You are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of money.

MediumVery Likely
arraydynamic-programmingbreadth-first-search

Most Common Word

Solve

Given a string paragraph and a string array of the banned words banned, return the most frequent word that is not banned. It is guaranteed there is at least one...

EasyVery Likely
arrayhash-tablestring

Maximum Depth of N-ary Tree

Solve

Given a n-ary tree, find its maximum depth.

EasyVery Likely
treedepth-first-searchbreadth-first-search

Design Circular Queue

Solve

Design your implementation of the circular queue. The circular queue is a linear data structure in which the operations are performed based on FIFO (First In Fi...

MediumVery Likely
arraylinked-listdesign

People Whose List of Favorite Companies Is Not a Subset of Another List

Solve

Given the array favoriteCompanies where favoriteCompanies[i] is the list of favorites companies for the ith person (indexed from 0).

MediumLikely
arrayhash-tablestring

Sliding Window Median

Solve

The median is the middle value in an ordered integer list. If the size of the list is even, there is no middle value. So the median is the mean of the two middl...

HardLikely
arrayhash-tablesliding-window

Binary Tree Maximum Path Sum

Solve

A path in a binary tree is a sequence of nodes where each pair of adjacent nodes in the sequence has an edge connecting them. A node can only appear in the sequ...

HardLikely
dynamic-programmingtreedepth-first-search

Design Add and Search Words Data Structure

Solve

Design a data structure that supports adding new words and finding if a string matches any previously added string.

MediumLikely
stringdepth-first-searchdesign

House Robber

Solve

You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from rob...

MediumLikely
arraydynamic-programming

House Robber II

Solve

You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed. All houses at this place are arranged in...

MediumLikely
arraydynamic-programming

Check If It Is a Straight Line

Solve

You are given an integer array coordinates, coordinates[i] = [x, y], where [x, y] represents the coordinate of a point. Check if these points make a straight li...

EasyLikely
arraymathgeometry

Greatest Common Divisor of Strings

Solve

For two strings s and t, we say "t divides s" if and only if s = t + t + t + ... + t + t (i.e., t is concatenated with itself one or more times).

EasySometimes
mathstring

Odd String Difference

Solve

You are given an array of equal-length strings words. Assume that the length of each string is n.

EasySometimes
arrayhash-tablestring

Unique Number of Occurrences

Solve

Given an array of integers arr, return true if the number of occurrences of each value in the array is unique or false otherwise.

EasySometimes
arrayhash-table

Path Sum

Solve

Given the root of a binary tree and an integer targetSum, return true if the tree has a root-to-leaf path such that adding up all the values along the path equa...

EasySometimes
treedepth-first-searchbreadth-first-search

Find Words That Can Be Formed by Characters

Solve

You are given an array of strings words and a string chars.

EasySometimes
arrayhash-tablestring

Binary Search Tree to Greater Sum Tree

Solve

Given the root of a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus the sum o...

MediumSometimes
treedepth-first-searchbinary-search-tree

How often are these problems asked?

Frequency scores are based on crowdsourced interview reports. A higher score means the problem has been reported more often in recent Datadog interviews.

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your Datadog coding interview

Datadog interviews focus heavily on array, hash-table, string problems. If you're short on time, these are the categories to prioritize. The problems on this page are sorted by frequency, so start from the top and work your way down.

Beyond solving problems, practice explaining your approach. Datadog interviewers care about your thought process - how you break down a problem, consider edge cases, and evaluate tradeoffs between solutions. A clean O(n) solution you can explain clearly beats an O(log n) solution you can't articulate.

Looking for more companies? Browse all 458 companies in our directory, or sharpen your fundamentals with our free data structure visualizers and AI-powered DSA tutor.

Frequently Asked Questions

What coding problems does Datadog ask in interviews?add

Datadog has been reported to ask 17 distinct coding problems. The most common topics are array, hash-table, string. 8 are Easy difficulty, 7 are Medium, and 2 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are Datadog coding interviews?add

Based on 17 reported problems, Datadog interviews are in line with industry averages - 12% Hard vs 18% overall. 41% of questions are Medium difficulty. Focus on the high-frequency Medium problems first, then work through the Hard ones.

How should I prepare for a Datadog coding interview?add

Start with the highest-frequency problems listed on this page. Focus on the core topics: array, hash-table, string. Practice solving them under time pressure and explaining your approach out loud. Mock interviews with AI can simulate the real experience.

Other companies to explore

Ready to ace your Datadog interview?

Simulate a real Datadog coding interview with an AI interviewer. Get a scorecard with specific feedback on your problem-solving, code quality, and communication.

Simulate a Datadog interview with AIarrow_forward