Problem database last updated: June 20, 2025

MMyntra logo

Myntra Coding Interview Questions

22 problems · 3 Easy, 16 Medium, 3 Hard · Ranked #85 of 459

Difficulty breakdown

3 Easy

14% · avg 23%

16 Medium

73% · avg 59%

3 Hard

14% · avg 18%

Top topics

array
72.7%
hash-table
27.3%
sorting
27.3%1.9x
dynamic-programming
22.7%
stack
18.2%2.1x
tree
18.2%3.3x

Interview profile

Based on 22 reported problems, Myntra interviews are in line with industry averages - 14% Hard vs 18% overall. The majority (73%) 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, Myntra puts unusual emphasis on tree (18.2% of problems, 3.3x the industry average), monotonic-stack (9.1% of problems, 3.2x the industry average), binary-tree (13.6% of problems, 2.8x the industry average). If you're short on time, these are the categories to double down on.

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

All 22 problems

Maximum Earnings From Taxi

Solve

There are n points on a road you are driving your taxi on. The n points on the road are labeled from 1 to n in the direction you are going, and you want to driv...

MediumVery Likely
arrayhash-tablebinary-search

Asteroid Collision

Solve

We are given an array asteroids of integers representing asteroids in a row. The indices of the asteroid in the array represent their relative position in space...

MediumVery Likely
arraystacksimulation

Repeated Substring Pattern

Solve

Given a string s, check if it can be constructed by taking a substring of it and appending multiple copies of the substring together.

EasyLikely
stringstring-matching

First Missing Positive

Solve

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

HardLikely
arrayhash-table

Largest Number

Solve

Given a list of non-negative integers nums, arrange them such that they form the largest number and return it.

MediumLikely
arraystringgreedy

LRU Cache

Solve

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

MediumLikely
hash-tablelinked-listdesign

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

Rotting Oranges

Solve

You are given an m x n grid where each cell can have one of three values:

MediumLikely
arraybreadth-first-searchmatrix

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.

HardLikely
arraytwo-pointersdynamic-programming

Container With Most Water

Solve

You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, height[i]).

MediumLikely
arraytwo-pointersgreedy

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

Deepest Leaves Sum

Solve

Given the root of a binary tree, return the sum of values of its deepest leaves.

MediumLikely
treedepth-first-searchbreadth-first-search

Lowest Common Ancestor of a Binary Tree

Solve

Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.

MediumLikely
treedepth-first-searchbinary-tree

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.

EasyLikely
arraydynamic-programming

Group Anagrams

Solve

Given an array of strings strs, group the anagrams together. You can return the answer in any order.

MediumLikely
arrayhash-tablestring

Maximal Square

Solve

Given an m x n binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area.

MediumLikely
arraydynamic-programmingmatrix

Flatten Binary Tree to Linked List

Solve

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

MediumLikely
linked-liststacktree

Two Sum

Solve

Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target.

EasyLikely
arrayhash-table

Minimum Time to Collect All Apples in a Tree

Solve

Given an undirected tree consisting of n vertices numbered from 0 to n-1, which has some apples in their vertices. You spend 1 second to walk over one edge of t...

MediumLikely
hash-tabletreedepth-first-search

Target Sum

Solve

You are given an integer array nums and an integer target.

MediumLikely
arraydynamic-programmingbacktracking

Minimum Moves to Equal Array Elements II

Solve

Given an integer array nums of size n, return the minimum number of moves required to make all array elements equal.

MediumLikely
arraymathsorting

Wiggle Sort

Solve

Given an integer array nums, reorder it such that nums[0] <= nums[1] >= nums[2] <= nums[3]....

MediumLikely
arraygreedysorting

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

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your Myntra coding interview

Myntra interviews focus heavily on array, hash-table, sorting 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. Myntra 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 459 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 Myntra ask in interviews?add

Myntra has been reported to ask 22 distinct coding problems. The most common topics are array, hash-table, sorting. 3 are Easy difficulty, 16 are Medium, and 3 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are Myntra coding interviews?add

Based on 22 reported problems, Myntra interviews are in line with industry averages - 14% Hard vs 18% overall. 73% 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 Myntra coding interview?add

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

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

Simulate a Myntra interview with AIarrow_forward