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

Software Analyst

Cognizant
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 4 months
Topics: Dsa, django, python, Oops, database, mongodb.
Tip
Tip

Tip 1 : Be confident 
Tip 2 : Adhere to what you prepared
Tip 3 : Should know your projects thoroughly.

Application process
Where: Campus
Eligibility: 6.0 cgpa and no backlogs
Resume Tip
Resume tip

Tip 1 : should be easy to understand. 
Tip 2 : only facts and no exaggeration in skills.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration120 minutes
Interview date16 Oct 2020
Coding problem0

First round is on amcat which checks your basics knowledge of verbal, quantitative aptitude basics of engineering.

02
Round
Hard
Online Coding Interview
Duration60 minutes
Interview date4 Nov 2020
Coding problem3

It consist three coding questions based on dsa like tree, graph and vectors maximum connection question i remember of graph.

1. Merge Intervals

Moderate
20m average time
80% success
0/80
Asked in companies
GoogleInnovaccerFacebook

You are given N number of intervals, where each interval contains two integers denoting the start time and the end time for the interval.

The task is to merge all the overlapping intervals and return the list of merged intervals sorted by increasing order of their start time.

Two intervals [A,B] and [C,D] are said to be overlapping with each other if there is at least one integer that is covered by both of them.

For example:

For the given 5 intervals - [1, 4], [3, 5], [6, 8], [10, 12], [8, 9].

Since intervals [1, 4] and [3, 5] overlap with each other, we will merge them into a single interval as [1, 5].

Similarly, [6, 8] and [8, 9] overlap, merge them into [6,9].

Interval [10, 12] does not overlap with any interval.

Final List after merging overlapping intervals: [1, 5], [6, 9], [10, 12].
Problem approach

Practise greedy problems

Try solving now

2. DFS Traversal

Moderate
35m average time
65% success
0/80
Asked in companies
Paytm (One97 Communications Limited)CognizantReliance Jio Infocomm Ltd

Given an undirected and disconnected graph G(V, E), containing 'V' vertices and 'E' edges, the information about edges is given using 'GRAPH' matrix, where i-th edge is between GRAPH[i][0] and GRAPH[i][1]. print its DFS traversal.

V is the number of vertices present in graph G and vertices are numbered from 0 to V-1. 

E is the number of edges present in graph G.
Note :
The Graph may not be connected i.e there may exist multiple components in a graph.
Problem approach

I had done this ques before. So it did not take me much time.

Try solving now

3. Bottom view of binary tree

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

You are given a 'Binary Tree'.


Return the bottom view of the binary tree.


Note :
1. A node will be in the bottom-view if it is the bottom-most node at its horizontal distance from the root. 

2. The horizontal distance of the root from itself is 0. The horizontal distance of the right child of the root node is 1 and the horizontal distance of the left child of the root node is -1. 

3. The horizontal distance of node 'n' from root = horizontal distance of its parent from root + 1, if node 'n' is the right child of its parent.

4. The horizontal distance of node 'n' from root = horizontal distance of its parent from the root - 1, if node 'n' is the left child of its parent.

5. If more than one node is at the same horizontal distance and is the bottom-most node for that horizontal distance, including the one which is more towards the right.


Example:
Input: Consider the given Binary Tree:

alt text

Output: 4 2 6 3 7

Explanation:
Below is the bottom view of the binary tree.

alt text

1 is the root node, so its horizontal distance = 0.
Since 2 lies to the left of 0, its horizontal distance = 0-1= -1
3 lies to the right of 0, its horizontal distance = 0+1 = 1
Similarly, horizontal distance of 4 = Horizontal distance of 2 - 1= -1-1=-2
Horizontal distance of 5 = Horizontal distance of 2 + 1=  -1+1 = 0
Horizontal distance of 6 = 1-1 =0
Horizontal distance of 7 = 1+1 = 2

The bottom-most node at a horizontal distance of -2 is 4.
The bottom-most node at a horizontal distance of -1 is 2.
The bottom-most node at a horizontal distance of 0 is 5 and 6. However, 6 is more towards the right, so 6 is included.
The bottom-most node at a horizontal distance of 1 is 3.
The bottom-most node at a horizontal distance of 2 is 7.

Hence, the bottom view would be 4 2 6 3 7


Try solving now
03
Round
Medium
HR Round
Duration55 minutes
Interview date27 Nov 2020
Coding problem2

It was a interview both hr plus technical
Questions were asked on:
Explain your PROJECTS? 
State merits demerits of PROJECT? 
Can it be scaled?
Normal oops concepts and mongodb.

1. Explain projects.

Problem approach

Tip 1 : Should know your project
Tip 2 : Answer with confidence. 
 

2. OOPs

Explain oops concepts, dsa, mongodb

 

Problem approach

Tip 1 : Learn dsa using courses from sites like from coding ninjas. 
Tip 2 : Answer it with confidence and accurately. 
 

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 create a function in JavaScript?

Choose another skill to practice
Join the Discussion
1 reply
Shreyash Ravidas Gondane 29 Jan, 2022

Can we apply if we have active backlog.

1 reply
0 upvotes
Reply
Report
Similar interview experiences
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Cognizant
1154 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Cognizant
713 views
0 comments
0 upvotes
company logo
Program Analyst
2 rounds | 6 problems
Interviewed by Cognizant
248 views
0 comments
0 upvotes
company logo
Programmer Analyst Trainee
3 rounds | 8 problems
Interviewed by Cognizant
401 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Analyst
3 rounds | 3 problems
Interviewed by Tata Consultancy Services (TCS)
872 views
1 comments
0 upvotes
company logo
Software Analyst
4 rounds | 4 problems
Interviewed by Accenture
867 views
0 comments
0 upvotes