Myntra pvt ltd interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

Myntra pvt ltd
upvote
share-icon
3 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 5 months
Topics: Data Structures, OOPS, System Design, Algorithms
Tip
Tip

Tip 1 : Stay motivated
Tip 2 : Never loose confidence
Tip 3 : Don`t stop practicing DSA

Application process
Where: Referral
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Add multiple projects
Tip 2 : be honest with your resume

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 mins
Interview date3 Mar 2022
Coding problem1

1. Balanced parentheses

Moderate
10m average time
90% success
0/80
Asked in companies
WalmartMakeMyTripGoldman Sachs

Given an integer ‘N’ representing the number of pairs of parentheses, Find all the possible combinations of balanced parentheses with the given number of pairs of parentheses.

Note :

Conditions for valid parentheses:
1. All open brackets must be closed by the closing brackets.

2. Open brackets must be closed in the correct order.

For Example :

()()()() is a valid parentheses.
)()()( is not a valid parentheses.
Problem approach

The idea is to put all the opening brackets in the stack. Whenever you hit a closing bracket, search if the top of the stack is the opening bracket of the same nature. If this holds then pop the stack and continue the iteration, in the end if the stack is empty, it means all brackets are well-formed . Otherwise, they are not balanced.

Try solving now
02
Round
Medium
Video Call
Duration90 mins
Interview date5 Jan 2023
Coding problem1

1. LCA - Lowest Common Ancestor

Hard
40m average time
70% success
0/120
Asked in companies
QualcommOYOAmazon

The lowest common ancestor (LCA) is a concept in graph theory and computer science.

Let ‘T’ be a rooted tree with ‘N’ nodes. The lowest common ancestor is defined between two nodes, ‘u’ and ‘v’, as the lowest node in ‘T’ that has both ‘u’ and ‘v’ as descendants (where we allow a node to be a descendant of itself). - Wikipedia

For the given tree, The LCA of nodes 5 and 8 will be node 2, as node 2 is the first node that lies in the path from node 5 to root node 1 and from node 8 to root node 1.

Path from node 5 to root node looks like 5 → 2 → 1.

Path from node 8 to root node looks like 8 → 6 → 2 → 1.

Since 2 is the first node that lies in both paths. Hence LCA will be 2.

Given any two nodes ‘u’ and ‘v’, find the LCA for the two nodes in the given Tree ‘T’.

Note: For each test case, the tree is rooted at node 1.

Problem approach

The idea is to traverse the tree starting from the root. If any of the given keys (n1 and n2) matches with the root, then the root is LCA (assuming that both keys are present). If the root doesn’t match with any of the keys, we recur for the left and right subtree. 

The node which has one key present in its left subtree and the other key present in the right subtree is the LCA. 
If both keys lie in the left subtree, then the left subtree has LCA also, 
Otherwise, LCA lies in the right subtree.

Try solving now
03
Round
Medium
HR Round
Duration60 minutes
Interview date7 Jan 2023
Coding problem1

1. Basic HR Questions

Behavioural questions, interests and why are you willing to change

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
SDE - 1
4 rounds | 11 problems
Interviewed by Myntra pvt ltd
1942 views
0 comments
0 upvotes
SDE - 1
2 rounds | 3 problems
Interviewed by Myntra pvt ltd
4942 views
0 comments
0 upvotes
SDE - 1
2 rounds | 4 problems
Interviewed by Myntra pvt ltd
2061 views
0 comments
0 upvotes
SDE - 1
3 rounds | 5 problems
Interviewed by Myntra pvt ltd
2260 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114579 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57825 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34961 views
7 comments
0 upvotes