Problem database last updated: June 20, 2025

ZZomato logo

Zomato Coding Interview Questions

22 problems · 0 Easy, 12 Medium, 10 Hard · Ranked #86 of 458

Difficulty breakdown

0 Easy

0% · avg 23%

12 Medium

55% · avg 59%

10 Hard

45% · avg 18%

Top topics

array
81.8%
dynamic-programming
31.8%1.6x
hash-table
22.7%
matrix
22.7%2.6x
math
18.2%
breadth-first-search
13.6%1.6x

Interview profile

Based on 22 reported problems, Zomato interviews are significantly harder than average - 45% Hard vs 18% across all companies. The majority (55%) of questions are Medium difficulty, which is typical for companies that want to see solid fundamentals without excessive trick questions.

Compared to the industry average, Zomato puts unusual emphasis on matrix (22.7% of problems, 2.6x the industry average), dynamic-programming (31.8% of problems, 1.6x the industry average), breadth-first-search (13.6% of problems, 1.6x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are array (81.8%), dynamic-programming (31.8%), hash-table (22.7%), matrix (22.7%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 22 problems

Split the Array to Make Coprime Products

Solve

You are given a 0-indexed integer array nums of length n.

HardVery Likely
arrayhash-tablemath

Number of Ways to Divide a Long Corridor

Solve

Along a long library corridor, there is a line of seats and decorative plants. You are given a 0-indexed string corridor of length n consisting of letters 'S' a...

HardVery Likely
mathstringdynamic-programming

Shortest Cycle in a Graph

Solve

There is a bi-directional graph with n vertices, where each vertex is labeled from 0 to n - 1. The edges in the graph are represented by a given 2D integer arra...

HardVery Likely
breadth-first-searchgraph

Maximum Spending After Buying Items

Solve

You are given a 0-indexed m n integer matrix values, representing the values of m n different items in m different shops. Each shop has n items where the jth it...

HardVery Likely
arraygreedysorting

Count the Hidden Sequences

Solve

You are given a 0-indexed array of n integers differences, which describes the differences between each pair of consecutive integers of a hidden sequence of len...

MediumVery Likely
arrayprefix-sum

Total Cost to Hire K Workers

Solve

You are given a 0-indexed integer array costs where costs[i] is the cost of hiring the ith worker.

MediumVery Likely
arraytwo-pointersheap-priority-queue

Find and Replace Pattern

Solve

Given a list of strings words and a string pattern, return a list of words[i] that match pattern. You may return the answer in any order.

MediumVery Likely
arrayhash-tablestring

Cherry Pickup

Solve

You are given an n x n grid representing a field of cherries, each cell is one of three possible integers.

HardVery Likely
arraydynamic-programmingmatrix

First Missing Positive

Solve

Given an unsorted integer array nums. Return the smallest positive integer that is not present in nums.

HardLikely
arrayhash-table

Count Zero Request Servers

Solve

You are given an integer n denoting the total number of servers and a 2D 0-indexed integer array logs, where logs[i] = [serverid, time] denotes that the server...

MediumLikely
arrayhash-tablesliding-window

Frog Jump

Solve

A frog is crossing a river. The river is divided into some number of units, and at each unit, there may or may not exist a stone. The frog can jump on a stone,...

HardLikely
arraydynamic-programming

3Sum

Solve

Given an integer array nums, return all the triplets [nums[i], nums[j], nums[k]] such that i != j, i != k, and j != k, and nums[i] + nums[j] + nums[k] == 0.

MediumLikely
arraytwo-pointerssorting

Self Crossing

Solve

You are given an array of integers distance.

HardLikely
arraymathgeometry

Maximum Subarray

Solve

Given an integer array nums, find the subarray with the largest sum, and return its sum.

MediumLikely
arraydivide-and-conquerdynamic-programming

Unique Paths

Solve

There is a robot on an m x n grid. The robot is initially located at the top-left corner (i.e., grid[0][0]). The robot tries to move to the bottom-right corner...

MediumLikely
mathdynamic-programmingcombinatorics

Jump Game II

Solve

You are given a 0-indexed array of integers nums of length n. You are initially positioned at index 0.

MediumLikely
arraydynamic-programminggreedy

Largest Rectangle in Histogram

Solve

Given an array of integers heights representing the histogram's bar height where the width of each bar is 1, return the area of the largest rectangle in the his...

HardLikely
arraystackmonotonic-stack

Unique Paths II

Solve

You are given an m x n integer array grid. There is a robot initially located at the top-left corner (i.e., grid[0][0]). The robot tries to move to the bottom-r...

MediumLikely
arraydynamic-programmingmatrix

Number of Islands

Solve

Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islands.

MediumLikely
arraydepth-first-searchbreadth-first-search

Snakes and Ladders

Solve

You are given an n x n integer matrix board where the cells are labeled from 1 to n2 in a Boustrophedon style starting from the bottom left of the board (i.e. b...

MediumLikely
arraybreadth-first-searchmatrix

LFU Cache

Solve

Design and implement a data structure for a Least Frequently Used (LFU) cache.

HardLikely
hash-tablelinked-listdesign

Two Sum II - Input Array Is Sorted

Solve

Given a 1-indexed array of integers numbers that is already sorted in non-decreasing order, find two numbers such that they add up to a specific target number....

MediumLikely
arraytwo-pointersbinary-search

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 Zomato interviews.

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your Zomato coding interview

Zomato 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. Zomato 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 Zomato ask in interviews?add

Zomato has been reported to ask 22 distinct coding problems. The most common topics are array, dynamic-programming, hash-table. 0 are Easy difficulty, 12 are Medium, and 10 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are Zomato coding interviews?add

Based on 22 reported problems, Zomato interviews are significantly harder than average - 45% Hard vs 18% across all companies. 55% 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 Zomato 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 Zomato interview?

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

Simulate a Zomato interview with AIarrow_forward