Info Edge India (Naukri.com) interview experience Real time questions & tips from candidates to crack your interview

SDET

Info Edge India (Naukri.com)
upvote
share-icon
3 rounds | 10 Coding problems

Interview preparation journey

expand-icon
Journey
I have done my B.Tech from Maharaja Agrasen Institute of Technology, a tier 3 college. Like most students, I also feared for my placement. So, I started multiple things like AI, Machine Learning, and web development simultaneously, which was one of my biggest mistakes. I was not able to excel in any of these technologies and wasted two years of my B.Tech. I started panicking as there was only one year left for placements. After that, I started doing DSA and interview questions from CodeStudio and regained my confidence. I was able to solve more and more questions with higher difficulty. This helped me a lot in clearing my campus interviews.
Application story
I have applied on campus only. Students were sorted based on their CGPA being greater than 8.5. All students were allowed to sit for an online test. After the online test, about 15 students were shortlisted for the interview, and about 6 students were selected after the final interview.
Why selected/rejected for the role?
I think I got selected because I was able to convey my thoughts and approach clearly to the Interviewer. And I was able to list almost all the test cases for the situations given to me.
Preparation
Duration: 5 months
Topics: Data Structures and Algorithms , OOPs , DBMS , SQL , Puzzles , Dynamic programming
Tip
Tip

1. Tip 1: It is better to mention one of your projects than to mention four projects copied from other sites.
2. Tip 2: Be patient with your progress. Take your time with different technologies.
3. Tip 3: Always go through recent interview experiences for the company for which you are giving the interview.

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

Tip 1: Always update your resume according to the job description. Add and remove things accordingly.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60 mins
Interview date20 Dec 2021
Coding problem2

1. Print second largest element in an array

Easy
15m average time
80% success
0/40
Asked in companies
AdobeSamsungIBM

You have been given an array/list 'ARR' of integers. Your task is to find the second largest element present in the 'ARR'.

Note:
a) Duplicate elements may be present.

b) If no such element is present return -1.
Example:
Input: Given a sequence of five numbers 2, 4, 5, 6, 8.

Output:  6

Explanation:
In the given sequence of numbers, number 8 is the largest element, followed by number 6 which is the second-largest element. Hence we return number 6 which is the second-largest element in the sequence.
Problem approach

First I go with the basic approach of sorting the array and printing the 2nd last element. This will take nlogn time .
After that I thought of another approach of doing this in o(n) time - For that I find the largest element from array and then again find the largest element excluding the previous element.

Try solving now

2. Prefix to Infix

Easy
10m average time
90% success
0/40
Asked in companies
HikeInfo Edge India (Naukri.com)Samsung

You are given a string denoting a valid Prefix expression containing ‘+’, ’-’, ’*’, ‘/’ and lowercase letters.


Convert the given Prefix expression into an Infix expression.


Note:
Infix notation is a method of writing mathematical expressions in which operators are placed between operands. For example, "a + b" represents the addition of a and b.

Prefix notation is a method of writing mathematical expressions in which operators are placed before the operands. For example, "+ a b" represents the addition of a and b.

Expression contains lowercase English letters, ‘+’, ‘-’, ‘*’, and  ‘/’. 


Example:
Input: /-ab+-cde

Output: ((a-b)/((c-d)+e))

Explanation:
In this test case, there are four operators ‘/’, ‘-’, ‘+’, ‘-’.
Prefix expression:  /-ab+-cde. 
The operator between  ‘a’ and ‘b’ is ‘-’. Resulting expression: /(a-b)+-cde.
The operator between  ‘c’ and ‘d’ is ‘-’. Resulting expression: /(a-b)+(c-d)e.
The operator between ‘c-d’ and ‘e’ is +. Resulting expression: /(a-b)((c-d)+e).
The operator between ‘a-b’ and ‘((c-d)+e)’ is ‘/’. Resulting expression: ((a-b)/((c-d)+e)).
Problem approach

Read the Prefix expression in reverse order (from right to left)
If the symbol is an operand, then push it onto the Stack
If the symbol is an operator, then pop two operands from the Stack 
Create a string by concatenating the two operands and the operator between them. 
And push the resultant string back to Stack
Repeat the above steps until the end of Prefix expression.

Try solving now
02
Round
Easy
Video Call
Duration50 minutes
Interview date30 Dec 2021
Coding problem3

1. Maximum Subarray Sum

Moderate
35m average time
81% success
0/80
Asked in companies
QualcommUberAmazon

You are given an array 'arr' of length 'n', consisting of integers.


A subarray is a contiguous segment of an array. In other words, a subarray can be formed by removing 0 or more integers from the beginning and 0 or more integers from the end of an array.


Find the sum of the subarray (including empty subarray) having maximum sum among all subarrays.


The sum of an empty subarray is 0.


Example :
Input: 'arr' = [1, 2, 7, -4, 3, 2, -10, 9, 1]

Output: 11

Explanation: The subarray yielding the maximum sum is [1, 2, 7, -4, 3, 2].
Problem approach

First of all ask your doubts and get good understanding of question. like which type of element can array contains.

Initialize:
max_so_far = INT_MIN
max_ending_here = 0

Loop for each element of the array

(a) max_ending_here = max_ending_here + a[i]
(b) if(max_so_far < max_ending_here)
max_so_far = max_ending_here
(c) if(max_ending_here < 0)
max_ending_here = 0
return max_so_far

Try solving now

2. Permutation In String

Hard
20m average time
80% success
0/120
Asked in companies
IBMMicrosoftAmazon

You have been given two strings ‘str1’ and ‘str2’ of length N and M respectively. Your task is to check whether string ‘str2’ contains one of the permutations of string ‘str1’ as its substring.

In other words, find whether there exists any permutation of string ‘str1’ that is a substring of ‘str2’.

A string ‘x’ is a permutation of another string ‘y’ only if sorted(x) = sorted(y). For example, LISTEN is a permutation of SILENT.

Note: ‘str1’ and ‘str2’ contains only lowercase English Alphabet letters.

For Example :

Input: str1 = “ab” , str2 = “aoba”
Output: Yes

Explanation: Permutations of first-string str1 i.e. “ab” are [“ab”, “ba”].
The substrings of str2, i.e. “aoba” are [“a”, “o”, “b”, “a”, “ao”, “ob”, “ba”, “aob”, “oba”, “aoba”].
The string “ba” is present in the list of substrings of string str2.
Problem approach

Create a function permute() with parameters as input string, starting index of the string, ending index of the string
Call this function with values input string, 0, size of string – 1
In this function, if the value of L and R is the same then print the same string
Else run a for loop from L to R and swap the current element in the for loop with the inputString[L]
Then again call this same function by increasing the value of L by 1
After that again swap the previously swapped values to initiate backtracking

Try solving now

3. SQL Question

SQL query to get second largest salary of an employee from employee table. (Practice)

03
Round
Easy
Video Call
Duration60 minutes
Interview date2 Jan 2021
Coding problem5

In this round Interviewer has asked me some output related questions, puzzles, SQL queries and test cases.

1. Puzzle

You have got someone working for you for five days and a gold bar to pay him. You must give them a piece of gold at the end of every day. What are the fewest number of cuts to the bar of gold that will allow you to pay him 1/5th each day. (Practice)

Problem approach

Cut it into [1/5,2/5,2/5] or [1/5,1/5,3/5]. Minimum cuts is 2 in both cases.

2. Puzzle

Suppose that we wish to know which stories in a 100-storey building are safe to drop eggs from, and which will cause the eggs to break on landing. What strategy should be used to drop eggs such that a total number of drops in the worst case is minimized and we find the required floor? (Practice)

3. Puzzle

A person has 3000 bananas and a camel. The person wants to transport the maximum number of bananas to a destination which is 1000 KMs away, using only the camel as a mode of transportation. The camel cannot carry more than 1000 bananas at a time and eats a banana every km it travels. What is the maximum number of bananas that can be transferred to the destination using only camel (no other mode of transportation is allowed). (Practice)

4. SQL Question

Write an SQL query to report all the duplicate emails. You can return the result table in any order. (Practice)

5. Puzzle

You have a birthday cake and have to cut it into 8 equal pieces by making 3 cuts only. How do you do it? (Practice)

Here's your problem of the day

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

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
SDET
3 rounds | 4 problems
Interviewed by Info Edge India (Naukri.com)
1424 views
0 comments
0 upvotes
SDET
3 rounds | 3 problems
Interviewed by Info Edge India (Naukri.com)
4451 views
1 comments
0 upvotes
Senior Software Engineer
4 rounds | 6 problems
Interviewed by Info Edge India (Naukri.com)
745 views
0 comments
0 upvotes
Software Engineer
3 rounds | 7 problems
Interviewed by Info Edge India (Naukri.com)
780 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDET
5 rounds | 6 problems
Interviewed by Sprinklr
2656 views
0 comments
0 upvotes