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

SDE - 1

Nutanix
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

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

Tip 1 : Must do Previously asked Interview as well as Online Test Questions.

Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.

Tip 3 : Do at-least 2 good projects and you must know every bit of them.


 

Application process
Where: Campus
Eligibility: Above 7 CGPA
Resume Tip
Resume tip

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.

Tip 2 : Every skill must be mentioned.

Tip 3 : Focus on skills, projects and experiences more.


 

Interview rounds

01
Round
Hard
Online Coding Interview
Duration50 minutes
Interview date1 Aug 2019
Coding problem2

Timing : Morning
Environment :  It happened in the Computer Lab of my institution
All students were assigned a computer and we had to solve two questions on hackerrank

1. Order of People Heights

Ninja
45m average time
55% success
0/200
Asked in companies
NVIDIANutanixFlipkart limited

There are ‘N’ people numbered from 0 to N - 1, standing in a queue. You are given two arrays ‘Height’ and ‘Infront‘ consisting of ‘N’ non-negative integers. ‘Height[i]’ gives the height of the ith person, and ‘Infront[i]’ gives the number of persons who are taller than the ith person and standing in front of the ith person.

Your task is to find out the actual order of people in a queue. You should print ‘N’ integers where the ‘ith’ integer is the height of the person who should be at the ith position from the start of the queue.

Note :

1. Consider that all elements in array ‘Height’ are unique.
2. It is guaranteed that a valid order always exists for the given array ‘Height’ and ‘Infront’. 

Example :

Let there are 6 people, their heights are given by array  ‘Height’ :  [5, 3, 2, 6, 1, 4],  and the number of people in front of them is given by array ‘Infront’: [0, 1, 2, 0, 3, 2]

Thus the actual order of people’s height in the queue will be [5, 3, 2, 1, 6, 4]

In this order, the first person in a queue i.e a person with a height of 5, has no person in front of them who is taller than him.
The second person in a queue i.e a person with a height of 3 has 1 person (person with height 5) in front of them who is taller than him.
The third person in a queue i.e a person with a height of 2 has 2 people (people with height 5 and 3) in front of them who are taller than him.
The fourth person in a queue i.e a person with a height of 1 has 3 people (people with height 5, 3, 2) in front of them who are taller than him.
The fifth person in a queue i.e a person with a height of 6 has no person in front of them who is taller than him.
The sixth person in a queue i.e a person with a height of 4 has 2 people (people with height 5, and 6) in front of them who are taller than him.

We can observe this is the only possible order that is possible according to the array ‘Infront’.
Problem approach

Sort people by heights. Then iterate from shortest to tallest. In each step, you need an efficient way to put the next person in the correct position. Notice that the people we’ve already placed are not taller than the current person. And the people we place after are taller than the current. So we have to find the first empty place such that the number of empty positions in front of it is equal to the Infront value of this person.

Try solving now

2. Count of Smaller Elements

Hard
45m average time
55% success
0/120
Asked in companies
SprinklrAppleOYO

Given an array of size 'N' return the count array such that COUNT[i] equals the number of element which are smaller than ARR[ i ] on its the right side.

For Example : ARR = [4,2,1,5] the count array corresponding to the given array is :-.

The Number of elements smaller than 4 on its right side is 2.
The Number of elements smaller than 2 on its right side is 1.
The Number of elements smaller than 1 on its right side is 0.
The Number of elements smaller than 5 on its right side is 0.
Hence the count array is [2,1,0,0]
Problem approach

The key idea is similar to merge sort divide the array into two parts until the base case is reached that is when the size is less than or equal to 1.

Try solving now
02
Round
Medium
Coding Test - Pen and paper
Duration30 minutes
Interview date2 Aug 2019
Coding problem1

It was a debugging round. We were given a code and we had to find bugs and correct them.
Timing : Morning
Environment : Shortlisted candidates were seated in a room and we were given bugged code on a paper.

1. Debugging Question

There was code of in-place merge sort in a linked list and there were a few bugs in it both logical and optimisation ones. We needed to correct them.

Problem approach

Tip 1 : Do not rewrite the whole code. Only change the segment which is wrong.
Tip 2 : Find as many bugs as possible.
 

03
Round
Medium
Online Coding Interview
Duration50 minutes
Interview date2 Aug 2019
Coding problem2

Standard DS/Algo round with 2 coding questions

1. Convert ternary expression to a binary tree

Easy
15m average time
85% success
0/40
Asked in companies
FacebookGrabGroww

You are given a ternary expression in the form of a string. Your task is to convert this expression into a binary tree.

Note:
1. The string is made up of lowercase English alphabets,  ‘?’ and ‘:’ special characters.

2. The alphabets may be repeated in the string.

3. The expression which uses ‘?:’ is known as ternary expression and the expression will be evaluated as (condition ? value_if_true : value_if_false).
Problem approach

Idea is that we traverse a string make first character as root and do following step recursively . 
1. If we see Symbol ‘?’ then we add next character as the left child of root. 
2. If we see Symbol ‘:’ then we add it as the right child of current root. 
Do this process until we traverse all element of the input string

Try solving now

2. Decode Ways

Moderate
15m average time
85% success
0/80
Asked in companies
UberAdobeLinkedIn

Given a string ‘strNum’ which represents a number, your task is to find the ways to decode the given string ‘strNum’.

The format of encoding is as follows: ‘A’ - 1, ‘B’ - 2, ‘C’ - 3, ‘D’ - 4, ……………, ‘Z’ - 26.

Encoding is possible in letters from ‘A’ to ‘Z’. There is an encoding between character and number.

Example :

subsequence

‘n = 226’ so we can decode ‘226’ in such a way-

‘BZ = 2-26’, as B maps to 2 and Z maps to 26.

‘BBF = 2-2-6’

‘VF = 22-6’

‘226; can be decoded in three ‘BZ’, ‘BBF’, ‘VF’ possible ways.

Point to be noticed we can’t decode ‘226’ as ‘226’ because we have no character which can directly map with ‘226’ we can only decode numbers from ‘1’ to ‘26’ only.

Problem approach

We can use top down DP for it. Lets say the string is "234" , so we have option to either take decode 2 first and then move on to the next part or we can decode "23" together and move onto the next part. We cannot take more than 2 characters at a time as they will exceed 26. So our dp[i] = dp[i+1] + dp[i+2]. And then we can have appropriate base conditions like if we exhause the string then return 1 and if in between we take two characters and if it exceeds 26 then return 0 and so on.

Try solving now

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
MTS 1
4 rounds | 6 problems
Interviewed by Nutanix
2206 views
0 comments
0 upvotes
SDE - 1
2 rounds | 4 problems
Interviewed by Nutanix
1050 views
0 comments
0 upvotes
SRE
4 rounds | 10 problems
Interviewed by Nutanix
1102 views
0 comments
0 upvotes
MTS 1
3 rounds | 7 problems
Interviewed by Nutanix
1103 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