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

SDE - 2

Cognizant
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
I applied through Naukri.com last summer after completing my 3rd year of BTech. I practiced DSA questions on various online coding platforms and had worked on some Flutter projects before applying for the summer internship. I received an email from HR regarding the first round of interviews, where I was asked two DSA questions: the two-sum problem and the maximum sum subarray. I was able to solve these within 20 minutes. Two days later, I had my final interview, which included an HR discussion. In this interview, I was asked to print a rhombus pattern and answer a few DSA questions related to arrays, linked lists, and trees. Finally, I was asked some HR questions, such as where I see myself in 5 years.
Application story
I applied through Naukri.com last summer when I completed my 3rd year of BTech. I practiced DSA questions using different online coding platforms.
Why selected/rejected for the role?
I solved many DSA problems and was confident in that. I also made a few projects that the company was looking for.
Preparation
Duration: 3 months
Topics: Data Structures, Pointers, OS, OOPS, System Design, Algorithms, Computer Networks, Dynamic Programming
Tip
Tip

Tip 1 : Practice at least 150 Questions.
Tip 2 : Do at least 2 projects.
Tip 3 : Be confident and honest.

Application process
Where: Naukri
Eligibility: 8 CGPA
Resume Tip
Resume tip

Tip 1 : Be honest, don't bluff with your resume.
Tip 2 : Write all achievements you have accomplished.

Interview rounds

01
Round
Easy
Online Coding Test
Duration60 minutes
Interview date16 Nov 2022
Coding problem2

1. Two Sum

Easy
10m average time
90% success
0/40
Asked in companies
AmazonSAP LabsTata Consultancy Services (TCS)

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. 
Try solving now

2. Maximum Subarray Sum

Moderate
25m average time
75% success
0/80
Asked in companies
UberTata Consultancy Services (TCS)Dunzo

Given an array of numbers, find the maximum sum of any contiguous subarray of the array.


For example, given the array [34, -50, 42, 14, -5, 86], the maximum sum would be 137, since we would take elements 42, 14, -5, and 86.


Given the array [-5, -1, -8, -9], the maximum sum would be -1.


Follow up: Do this in O(N) time.

Try solving now
02
Round
Easy
Face to Face
Duration80 minutes
Interview date29 Nov 2022
Coding problem2

1. Number Pattern

Easy
15m average time
85% success
0/40
Asked in companies
CognizantNagarro SoftwareCapegemini Consulting India Private Limited

Ninja is given a pattern. Now he is asked to print the same pattern for any given 'N' number of rows.

For example Pattern for 'N' = 4 will be-

1234
123
12
1
Try solving now

2. Trapping Rain Water

Moderate
15m average time
80% success
0/80
Asked in companies
SalesforcePayPalHexaware Technologies

You have been given a long type array/list 'arr’ of size 'n’.


It represents an elevation map wherein 'arr[i]’ denotes the elevation of the 'ith' bar.



Note :
The width of each bar is the same and is equal to 1.
Example:
Input: ‘n’ = 6, ‘arr’ = [3, 0, 0, 2, 0, 4].

Output: 10

Explanation: Refer to the image for better comprehension:

Alt Text

Note :
You don't need to print anything. It has already been taken care of. Just implement the given function.
Try solving now
0
Round
Easy
HR Round
Duration20 mins
Interview date9 Jul 2023
Coding problem1

Basic HR round with managerial questions.

1. Basic HR Questions

Introduce yourself.
What are strengths and weaknesses?
Have you ever used your logic finding skills in a real time situations?
Are you ready to relocate?

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 - 2
3 rounds | 11 problems
Interviewed by Cognizant
0 views
0 comments
0 upvotes
company logo
SDE - 2
2 rounds | 4 problems
Interviewed by Cognizant
750 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
772 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
3 rounds | 4 problems
Interviewed by HashedIn
9560 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 4 problems
Interviewed by Arcesium
1774 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 3 problems
Interviewed by Tata Consultancy Services (TCS)
1744 views
0 comments
0 upvotes