Nykaa interview experience Real time questions & tips from candidates to crack your interview

SDE - 1

Nykaa
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: DBMS, Networking, Java/C/C++, Data Structure & Algorithm, LLD, Operating System
Tip
Tip

Tip 1 : do coding from leetcode for understanding basic coding
Tip 2 : do coding from codeforce/codechef for coding practice
Tip 3 : go through cs fundamentals and oops concept for interview
Tip 4 : Do atleast 2-3 projects and one internship

Application process
Where: Campus
Eligibility: 7 CGPA and max. one year gap
Resume Tip
Resume tip

Tip 1 : Mention projects and internship detail
Tip 2 : Mention Codechef/codeforce rating

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60 Minutes
Interview date10 Jul 2021
Coding problem2

Two coding question for one hour

1. NINJA’S BIRTHDAY PARTY

Moderate
30m average time
70% success
0/80
Asked in companies
Dell TechnologiesGoldman SachsNykaa

Ninja and his friends went to a restaurant on the occasion of Ninja’s birthday. There he was offered by his friends to do some task, if he wins, he would not have to pay a single penny, his friends would pay instead of him. But if he loses, he would have to pay the whole bill. The task was that he was given a bar of chocolate and was asked to break it into single squares.

The rules were as follows:

1.Parts of the chocolate may be broken along the vertical and horizontal lines as indicated by the broken lines in the picture.

2.Each break of a part of the chocolate is charged a cost expressed by a positive integer.

3.This cost does not depend on the size of the part that is being broken but only depends on the line the break goes along.

4.Denoting the costs of breaking along consecutive vertical lines with x1, x2, ..., xm-1 and along horizontal lines with y1, y2, ..., yn-1.

5.The cost of breaking the whole bar into single squares is the sum of the successive breaks.

cakePic

Now, Ninja has to break the chocolate in such a way that results in minimum cost. So your task is to find the minimum cost.

Try solving now

2. Minimum Operations

Easy
20m average time
82% success
0/40
Asked in companies
MicrosoftBNY MellonLinkedIn

You are given an array 'ARR' of 'N' positive integers. You need to find the minimum number of operations needed to make all elements of the array equal. You can perform addition, multiplication, subtraction or division with any element on an array element.

Addition, Subtraction, Multiplication or Division on any element of the array will be considered as a single operation.

Example:

If the given array is [1,2,3] then the answer would be 2. One of the ways to make all the elements of the given array equal is by adding 1 to the array element with value 1 and subtracting 1 from the array element with value 3. So that final array would become [2,2,2]. 
Try solving now
02
Round
Medium
Video Call
Duration75 minutes
Interview date3 Aug 2021
Coding problem2

There were two question from DSA and basic oops concept.
Question related to my project.
Interview went for nearly 1:15 hr.

1. Intersection of Linked Lists

Easy
20m average time
70% success
0/40
Asked in companies
MakeMyTripCIS - Cyber InfrastructureMathworks

You are given two linked lists L1 and L2 which are sorted in ascending order. You have to make a linked list with the elements which are present in both the linked lists and are present in ascending order.

Example:-
L1 = 1->2->3->4->7
L2 = 2->4->6->7

ANSWER:- The answer should be 2->4->7 because 2,4, and 7 are present in both the linked lists.
Problem approach

Get count of the nodes in the first list, let count be c1.
Get count of the nodes in the second list, let count be c2.
Get the difference of counts d = abs(c1 – c2)
Now traverse the bigger list from the first node till d nodes so that from here onwards both the lists have equal no of nodes
Then we can traverse both the lists in parallel till we come across a common node. (Note that getting a common node is done by comparing the address of the nodes)

Try solving now

2. Next Greater Element

Easy
10m average time
90% success
0/40
Asked in companies
AdobeGoldman SachsMakeMyTrip

You have been given an array/list ‘ARR’ consisting of ‘N’ positive integers. Your task is to return the Next Greater Element(NGE) for every element.

The Next Greater Element for an element ‘X’ is the first element on the right side of ‘X’ in the array 'ARR', which is greater than ‘X’. If no such element exists to the right of ‘X’, then return -1.

For example:
For the given array 'ARR' = [7, 12, 1, 20]

The next greater element for 7 is 12.
The next greater element for 12 is 20. 
The next greater element for 1 is 20. 
There is no greater element for 20 on the right side.

So, the output is [12, 20, 20, -1].
Problem approach

Push the first element to stack.
Pick rest of the elements one by one and follow the following steps in loop. 
Mark the current element as next.
If stack is not empty, compare top element of stack with next.
If next is greater than the top element, Pop element from stack. next is the next greater element for the popped element.
Keep popping from the stack while the popped element is smaller than next. next becomes the next greater element for all such popped elements.
Finally, push the next in the stack.
After the loop in step 2 is over, pop all the elements from the stack and print -1 as the next element for them

Try solving now
03
Round
Easy
HR Round
Duration30 minutes
Interview date12 Aug 2021
Coding problem1

1. Basic HR Questions

It was easy round basic question related to me , my expectations from company and some behavioural question that is -
how will you manage if you have dispute from your colleagues?
how will you handle extra work if your colleagues are not present?

Problem approach

Tip 1 : confidence is key here
Tip 2 : don't answer from online stuff, put yourself at that place and than answer.

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
3 rounds | 4 problems
Interviewed by Nykaa
5922 views
0 comments
0 upvotes
SDE - 1
3 rounds | 5 problems
Interviewed by Nykaa
2179 views
0 comments
0 upvotes
Software Engineer
1 rounds | 1 problems
Interviewed by Nykaa
861 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3451 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
114578 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
57824 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
34960 views
7 comments
0 upvotes