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

Big data Analyst

Cognizant
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 1 month
Topics: Python, DSA, Aptitude, SQL, Html, css, javascript
Tip
Tip

Tip 1 : practice more on programming
Tip 2 : just first learn basics and go for advance
Tip 3 : the questions on database are more important that can increases more package just well prepare on sql

Application process
Where: Other
Eligibility: 65% above (No backlogs)
Resume Tip
Resume tip

Tip 1 : everything should be format in a nice way don't add colors to resume keep it simple
Tip 2 : first name-->address->education->experience->projects/open source->achievements

Interview rounds

01
Round
Easy
Online Coding Interview
Duration180 minutes
Interview date25 Aug 2021
Coding problem2

1. Buy and Sell Stock - III

Hard
10m average time
90% success
0/120
Asked in companies
Media.netMorgan StanleySamsung R&D Institute

Given an array "prices". In "prices" the ith element is the price of the stock on the ith day. Your task is to find maximum profit at the end of the ith day. You may complete at max 2 transactions.

You can perform a transition with these conditions -

1. Not allowed to engage in more than 1 transaction at a time, which means if you have bought stock then you can buy another stock before selling the first stock.

2. If you bought a stock at ‘X’ price and sold it at ‘Y’ price then the profits ‘Y - X’.
Note:
It is not compulsory to perform an exact '2' transaction.
Try solving now

2. Pairwise Sum of Hamming Distance

Moderate
30m average time
70% success
0/80
Asked in companies
CognizantGoogle incZycus

You are given an array ARR having N integers. Your task is to find the sum of Hamming Distance for each pair of the array elements.

Hamming Distance for two given integers 'A' and 'B' is defined as the minimum number of bits that needs to be toggled to make both the integers equal.

For example:

Consider A=4 and B=7
Binary representation of 4 = 100
Binary representation of 7 = 111
For the given example, if we flip the values of the last two least significant bits of A to 1 then A will become 7. As we can change the value of A to B by 2 flips. Therefore the Hamming Distance, in this case, is 2.
Try solving now
02
Round
Hard
Video Call
Duration30 minnutes
Interview date2 Sep 2021
Coding problem2

1. Next Greater Element

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

You are given an array 'a' of size 'n'.



The Next Greater Element for an element 'x' is the first element on the right side of 'x' in the array, which is greater than 'x'.


If no greater elements exist to the right of 'x', consider the next greater element as -1.


For example:
Input: 'a' = [7, 12, 1, 20]

Output: NGE = [12, 20, 20, -1]

Explanation: For the given array,

- 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 we consider NGE as -1.
Try solving now

2. Left View Of Binary Tree

Moderate
30m average time
60% success
0/80
Asked in companies
MicrosoftGeeksforGeeksBNY Mellon

You have been given a Binary Tree of 'n' nodes, where the nodes have integer values



Example :
If the input tree is as depicted in the picture: 

alt text

The Left View of the tree will be:  2 35 2 
Try solving now
03
Round
Medium
HR Round
Duration10 minutes
Interview date10 Sep 2021
Coding problem1

1. Basic HR Questions

Show me your id card
Relocation related questions
Which tech you are using
Some questions around projects
What's the famous food in the ongole ?
Who is your favorite hero ?

Here's your problem of the day

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

Skill covered: Programming

To make an AI less repetitive in a long paragraph, you should increase:

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Cognizant
1746 views
1 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Cognizant
1063 views
0 comments
0 upvotes
company logo
Program Analyst
2 rounds | 6 problems
Interviewed by Cognizant
604 views
0 comments
0 upvotes
company logo
Programmer Analyst Trainee
3 rounds | 8 problems
Interviewed by Cognizant
773 views
0 comments
0 upvotes