Problem database last updated: June 20, 2025

MMedia.net logo

Media.net Coding Interview Questions

36 problems · 7 Easy, 15 Medium, 14 Hard · Ranked #58 of 458

Difficulty breakdown

7 Easy

19% · avg 23%

15 Medium

42% · avg 59%

14 Hard

39% · avg 18%

Top topics

array
69.4%
dynamic-programming
41.7%2.1x
hash-table
25%
bit-manipulation
16.7%5x
greedy
13.9%1.6x
math
11.1%

Interview profile

Based on 36 reported problems, Media.net interviews are significantly harder than average - 39% Hard vs 18% across all companies.

Compared to the industry average, Media.net puts unusual emphasis on bitmask (8.3% of problems, 15.4x the industry average), number-theory (5.6% of problems, 10.8x the industry average), bit-manipulation (16.7% of problems, 5x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are array (69.4%), dynamic-programming (41.7%), hash-table (25%), bit-manipulation (16.7%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 36 problems

Minimum Operations to Form Subsequence With Target Sum

Solve

You are given a 0-indexed array nums consisting of non-negative powers of 2, and an integer target.

HardVery Likely
arraygreedybit-manipulation

Count the Number of Square-Free Subsets

Solve

You are given a positive integer 0-indexed array nums.

MediumVery Likely
arraymathdynamic-programming

Maximum Genetic Difference Query

Solve

There is a rooted tree consisting of n nodes numbered 0 to n - 1. Each node's number denotes its unique genetic value (i.e. the genetic value of node x is x). T...

HardVery Likely
arrayhash-tablebit-manipulation

Scramble String

Solve

We can scramble a string s to get a string t using the following algorithm:

HardVery Likely
stringdynamic-programming

Maximum Value of an Ordered Triplet II

Solve

You are given a 0-indexed integer array nums.

MediumVery Likely
array

Maximum Value of an Ordered Triplet I

Solve

You are given a 0-indexed integer array nums.

EasyVery Likely
array

Make the XOR of All Segments Equal to Zero

Solve

You are given an array nums​​​ and an integer k​​​​​. The XOR of a segment [left, right] where left <= right is the XOR of all the elements with indices between...

HardVery Likely
arrayhash-tabledynamic-programming

Minimum Time Visiting All Points

Solve

On a 2D plane, there are n points with integer coordinates points[i] = [xi, yi]. Return the minimum time in seconds to visit all the points in the order given b...

EasyVery Likely
arraymathgeometry

Minimum XOR Sum of Two Arrays

Solve

You are given two integer arrays nums1 and nums2 of length n.

HardVery Likely
arraydynamic-programmingbit-manipulation

Queens That Can Attack the King

Solve

On a 0-indexed 8 x 8 chessboard, there can be multiple black queens and one white king.

MediumVery Likely
arraymatrixsimulation

Furthest Building You Can Reach

Solve

You are given an integer array heights representing the heights of buildings, some bricks, and some ladders.

MediumVery Likely
arraygreedyheap-priority-queue

Difference Between Maximum and Minimum Price Sum

Solve

There exists an undirected and initially unrooted tree with n nodes indexed from 0 to n - 1. You are given the integer n and a 2D integer array edges of length...

HardVery Likely
arraydynamic-programmingtree

Minimum Total Space Wasted With K Resizing Operations

Solve

You are currently designing a dynamic array. You are given a 0-indexed integer array nums, where nums[i] is the number of elements that will be in the array at...

MediumVery Likely
arraydynamic-programmingprefix-sum

Best Time to Buy and Sell Stock

Solve

You are given an array prices where prices[i] is the price of a given stock on the ith day.

EasyVery Likely
arraydynamic-programming

Flatten Binary Tree to Linked List

Solve

Given the root of a binary tree, flatten the tree into a "linked list":

MediumLikely
linked-liststacktree

Substring with Concatenation of All Words

Solve

You are given a string s and an array of strings words. All the strings of words are of the same length.

HardLikely
hash-tablestringsliding-window

Merge Two Sorted Lists

Solve

You are given the heads of two sorted linked lists list1 and list2.

EasyLikely
linked-listrecursion

Painting the Walls

Solve

You are given two 0-indexed integer arrays, cost and time, of size n representing the costs and the time taken to paint n different walls respectively. There ar...

HardLikely
arraydynamic-programming

Fizz Buzz

Solve

Given an integer n, return a string array answer (1-indexed) where:

EasyLikely
mathstringsimulation

Jump Game

Solve

You are given an integer array nums. You are initially positioned at the array's first index, and each element in the array represents your maximum jump length...

MediumLikely
arraydynamic-programminggreedy

Number of Submatrices That Sum to Target

Solve

Given a matrix and a target, return the number of non-empty submatrices that sum to target.

HardLikely
arrayhash-tablematrix

Binary Search Tree Iterator

Solve

Implement the BSTIterator class that represents an iterator over the in-order traversal of a binary search tree (BST):

MediumLikely
stacktreedesign

The Number of Good Subsets

Solve

You are given an integer array nums. We call a subset of nums good if its product can be represented as a product of one or more distinct prime numbers.

HardLikely
arrayhash-tablemath

Valid Sudoku

Solve

Determine if a 9 x 9 Sudoku board is valid. Only the filled cells need to be validated according to the following rules:

MediumLikely
arrayhash-tablematrix

Best Time to Buy and Sell Stock II

Solve

You are given an integer array prices where prices[i] is the price of a given stock on the ith day.

MediumLikely
arraydynamic-programminggreedy

LRU Cache

Solve

Design a data structure that follows the constraints of a Least Recently Used (LRU) cache.

MediumLikely
hash-tablelinked-listdesign

Valid Phone Numbers

Solve

Given a text file file.txt that contains a list of phone numbers (one per line), write a one-liner bash script to print all valid phone numbers.

EasyLikely
shell

Minimize the Maximum Difference of Pairs

Solve

You are given a 0-indexed integer array nums and an integer p. Find p pairs of indices of nums such that the maximum difference amongst all the pairs is minimiz...

MediumSometimes
arraybinary-searchdynamic-programming

Longest Palindromic Substring

Solve

Given a string s, return the longest palindromic substring in s.

MediumSometimes
two-pointersstringdynamic-programming

Majority Element

Solve

Given an array nums of size n, return the majority element.

EasySometimes
arrayhash-tabledivide-and-conquer

Trapping Rain Water

Solve

Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.

HardSometimes
arraytwo-pointersdynamic-programming

Search in Rotated Sorted Array

Solve

There is an integer array nums sorted in ascending order (with distinct values).

MediumSometimes
arraybinary-search

All O`one Data Structure

Solve

Design a data structure to store the strings' count with the ability to return the strings with minimum and maximum counts.

HardSometimes
hash-tablelinked-listdesign

Sliding Window Maximum

Solve

You are given an array of integers nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see...

HardSometimes
arrayqueuesliding-window

Sum of Distances in Tree

Solve

There is an undirected connected tree with n nodes labeled from 0 to n - 1 and n - 1 edges.

HardSometimes
dynamic-programmingtreedepth-first-search

Merge Intervals

Solve

Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals that cove...

MediumSometimes
arraysorting

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 Media.net interviews.

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your Media.net coding interview

Media.net interviews focus heavily on array, dynamic-programming, hash-table 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. Media.net 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 Media.net ask in interviews?add

Media.net has been reported to ask 36 distinct coding problems. The most common topics are array, dynamic-programming, hash-table. 7 are Easy difficulty, 15 are Medium, and 14 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are Media.net coding interviews?add

Based on 36 reported problems, Media.net interviews are significantly harder than average - 39% Hard vs 18% across all companies. 42% 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 Media.net coding interview?add

Start with the highest-frequency problems listed on this page. Focus on the core topics: array, dynamic-programming, hash-table. 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 Media.net interview?

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

Simulate a Media.net interview with AIarrow_forward