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

Software Engineer

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

Interview preparation journey

expand-icon
Preparation
Duration: 4 months
Topics: Data structures, Algorithms, OOPS, OS, DBMS, Computer Networks, System Design, React
Tip
Tip

Tip 1: Make sure you have your computer science fundamentals very clear.
Tip 2: You should know the complexity of the code you write and should know the internal implementation of the data structure you use while coding.
Tip 3: You should know about everything you write in your resume.
Tip 4: Practice a lot of programming problems. Participate in competitive programming contests.

Application process
Where: Referral
Eligibility: Bachelor's degree with 1+ year of professional experience, good in DSA
Resume Tip
Resume tip

Tip 1: Be honest about what you write in your resume.
Tip 2: Should have at least 2 projects
Tip 3: Maintain a precise and self-speaking one-page resume.
Tip 4: Add technical achievements only.

Interview rounds

01
Round
Easy
Video Call
Duration60 minutes
Interview date23 Jan 2022
Coding problem3

This round started at 11 Am in the morning and covered DSA, Puzzles

1. Wildcard Pattern Matching

Hard
50m average time
30% success
0/120
Asked in companies
SalesforceFreshworksWalmart

Given a text and a wildcard pattern of size N and M respectively, implement a wildcard pattern matching algorithm that finds if the wildcard pattern is matched with the text. The matching should cover the entire text not partial text.

The wildcard pattern can include the characters ‘?’ and ‘*’

 ‘?’ – matches any single character 
 ‘*’ – Matches any sequence of characters(sequence can be of length 0 or more)
Problem approach

Each occurrence of ‘?’ character in wildcard pattern can be replaced with any other character and each occurrence of ‘*’ with a sequence of characters such that the wildcard pattern becomes identical to the input string after replacement.
Let’s consider any character in the pattern.

Case 1: The character is ‘*’ . Here two cases arises as follows: 

We can ignore ‘*’ character and move to next character in the Pattern.
‘*’ character matches with one or more characters in Text. Here we will move to next character in the string.
Case 2: The character is ‘?’ 
We can ignore current character in Text and move to next character in the Pattern and Text.

Case 3: The character is not a wildcard character 
If current character in Text matches with current character in Pattern, we move to next character in the Pattern and Text. If they do not match, wildcard pattern and Text do not match.
We can use Dynamic Programming to solve this problem:

Let T[i][j] is true if first i characters in given string matches the first j characters of pattern.

Try solving now

2. Two Sum

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

You are given an array of integers 'ARR' of length 'N' and an integer Target. Your task is to return all pairs of elements such that they add up to Target.

Note:

We cannot use the element at a given index twice.

Follow Up:

Try to do this problem in O(N) time complexity. 
Problem approach

Initialize the count variable with 0 which stores the result.
Iterate arr and if the sum of ith and jth [i + 1…..n – 1] element is equal to sum i.e. arr[i] + arr[j] == sum, then increment the count variable.
Return the count.

Try solving now

3. Puzzle

There are 3 ants sitting on three corners of a triangle. All ants randomly pick a direction and start moving along edge of the triangle. What is the probability that any two ants collide?

Problem approach

Tip 1: Convey your thought process to the interviewer
Tip 2: Practice Problems on online sites
Tip 3: look into previously asked questions.

02
Round
Easy
Video Call
Duration60 minutes
Interview date24 Jan 2022
Coding problem2

This round was conducted at 2 PM with a senior engineer and 2 DSA problems were asked in it. followed by some basic os and Computer networks questions.

1. Subarray With Given Sum

Moderate
15m average time
85% success
0/80
Asked in companies
Thought WorksAdobeInfo Edge India (Naukri.com)

Given an array ARR of N integers and an integer S. The task is to find whether there exists a subarray(positive length) of the given array such that the sum of elements of the subarray equals to S or not. If any subarray is found, return the start and end index (0 based index) of the subarray. Otherwise, consider both the START and END indexes as -1.

Note:

If two or more such subarrays exist, return any subarray.

For Example: If the given array is [1,2,3,4] and the value of S is equal to 7. Then there are two possible subarrays having sums equal to S are [1,2,3] and [3,4].

Problem approach

Create a Hashmap (hm) to store a key-value pair, i.e, key = prefix sum and value = its index, and a variable to store the current sum (sum = 0) and the sum of the subarray as s
Traverse through the array from start to end.
For every element update the sum, i.e sum = sum + array[i]
If the sum is equal to s then print that the subarray with the given sum is from 0 to i
If there is any key in the HashMap which is equal to sum – s then print that the subarray with the given sum is from hm[sum – s] to i
Put the sum and index in the hashmap as a key-value pair.

Try solving now

2. Queue Using Two Stacks

Easy
15m average time
85% success
0/40
Asked in companies
Info Edge India (Naukri.com)IntuitAmazon

You will be given ‘Q’ queries. You need to implement a queue using two stacks according to those queries. Each query will belong to one of these three types:

1 ‘X’: Enqueue element ‘X’  into the end of the nth queue. Returns true after the element is enqueued.

2: Dequeue the element at the front of the nth queue. Returns -1 if the queue is empty, otherwise, returns the dequeued element.
Note:
Enqueue means adding an element to the end of the queue, while Dequeue means removing the element from the front of the queue.
Problem approach

The oldest entered element is always at the top of stack 1, so that deQueue operation just pops from stack1. To put the element at top of stack1, stack2 is used.

Try solving now
03
Round
Easy
Video Call
Duration60 minutes
Interview date28 Jan 2022
Coding problem1

This round was taken by a tech lead in the evening. I was asked 1 DSA question followed by questions on my projects.

1. LRU Cache

Moderate
0/80
Asked in companies
Info Edge India (Naukri.com)OlaExpedia Group
Design a data structure that satisfies the constraints of a Least Recently Used (LRU).
1. Get(int num): If the key exists, it will return the value of the key stored. Else, return -1.    
2. Put(int key, int value): If the key already exists, update the value of the key. Else add the key-value pair to the cache. If the number of keys is more than the capacity for this operation, delete the least recently key used. 
Example:
For the following input: 

4 2
2 1 4
1 1
1 4

We will initialize an empty LRU cache for the first operation with a maximum capacity of 2.
For the first operation, we need to add a key-value pair (1,4) to the cache.
For the second operation, we need to return the value stored for key 1, i.e., 4
For the third operation, we need to return -1, as we don't have any key 4 in the cache.

So, the final output will be: 
4  -1
Problem approach

The problem can be solved with a hashtable that keeps track of the keys and its values in the double linked list. One interesting property about double linked list is that the node can remove itself without other reference. In addition, it takes constant time to add and remove nodes from the head or tail.

One particularity about the double linked list that I implemented is that I create a pseudo head and tail to mark the boundary, so that we don't need to check the NULL node during the update. This makes the code more concise and clean, and also it is good for the performance.

Try solving now
04
Round
Easy
HR Round
Duration15 minutes
Interview date31 Oct 2022
Coding problem1

This round is simple. It is more like a friendly discussion with HR.

1. Basic HR Questions

1. your strengths and weaknesses

2. where do you see yourself in 5 years?

Problem approach

Tip 1: Practice general HR questions
Tip 2: Stay confident
Tip 3: Always ask your doubts wisely, don't overdo things.

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
Software Engineer
3 rounds | 4 problems
Interviewed by Info Edge India (Naukri.com)
907 views
0 comments
0 upvotes
Software Engineer
2 rounds | 3 problems
Interviewed by Info Edge India (Naukri.com)
0 views
0 comments
0 upvotes
Software Engineer
5 rounds | 4 problems
Interviewed by Info Edge India (Naukri.com)
906 views
2 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
Software Engineer
3 rounds | 7 problems
Interviewed by Optum
7977 views
1 comments
0 upvotes
company logo
Software Engineer
5 rounds | 5 problems
Interviewed by Microsoft
10148 views
1 comments
0 upvotes
company logo
Software Engineer
2 rounds | 4 problems
Interviewed by Amazon
4448 views
1 comments
0 upvotes