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

Software Engineer

Cognizant
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Journey
I applied online and got a call a week later to schedule an interview. It was a group interview with 2 of the managers, very laid back. They asked questions off of a packet for the interview, asked about my past experience with my old jobs and was very open about the opening position.
Application story
I applied online and got a call a week later to schedule an interview. It was a group interview with 2 of the managers, very laid back. They asked questions off of a packet for the interview, asked about my past experience with my old jobs and was very open about the opening position.
Why selected/rejected for the role?
I rejected, As there are only few vacancies left for the role which I applied in that company and I taught will get something better pay for the role.
Preparation
Duration: 4 months
Topics: C, Java,Data Structures, python, OOPS,DS Algorithms
Tip
Tip

Tip 1 : Practice all the basic concepts and programs in OOPS and Data Structures.
Tip 2 : Do some projects.
Tip 3 : The biggest question was "Why do you want the job?". When they ask this question never say you just need a job give them details on why you need the job.

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

Tip 1: Have some good projects on resume.
Tip 2: Able to explain everything clearly which are there on resume.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration60 mins
Interview date15 Oct 2021
Coding problem1

1. Reverse Number

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

Ninja is feeling very bored and wants to try something new. So, he decides to find the reverse of a given number. But he cannot do it on his own and needs your help.

Note:

If a number has trailing zeros, then its reverse will not include them. For e.g., the reverse of 10400 will be 401 instead of 00401.
Problem approach

#include
int main()
{
//Initialization of variables where rev='reverse=0'
int number, rev = 0,store, left;

//input a numbers for user
printf("Enter the number\n");
scanf("%d", &number);

store= number;
//use this loop for check true condition
while (number > 0)
{
//left is for remider are left
left= number%10;

//for reverse of no.
rev = rev * 10 + left;

//number /= 10;
number=number/10;

}
//To show the user value
printf("Given number = %d\n",store);

//after reverse show numbers
printf("Its reverse is = %d\n", rev);

return 0;
}

Try solving now
02
Round
Easy
Face to Face
Duration30 mins
Interview date3 Nov 2021
Coding problem2

1. Reverse Linked List

Moderate
15m average time
85% success
0/80
Asked in companies
CIS - Cyber InfrastructureInfo Edge India (Naukri.com)Cisco

Given a singly linked list of integers. Your task is to return the head of the reversed linked list.

For example:
The given linked list is 1 -> 2 -> 3 -> 4-> NULL. Then the reverse linked list is 4 -> 3 -> 2 -> 1 -> NULL and the head of the reversed linked list will be 4.
Follow Up :
Can you solve this problem in O(N) time and O(1) space complexity?
Problem approach

Tip 1: Go through the Data Structures concepts briefly.
Tip 2: Prepare the previous years interview questions.

Try solving now

2. Queue Using Two Stacks

Easy
15m average time
85% success
0/40
Asked in companies
AmazonMicrosoftIntuit

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

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
Software Engineer
2 rounds | 4 problems
Interviewed by Cognizant
1200 views
0 comments
0 upvotes
company logo
Software Engineer
4 rounds | 8 problems
Interviewed by Cognizant
1450 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 3 problems
Interviewed by Cognizant
1044 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 6 problems
Interviewed by Cognizant
890 views
2 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
4 rounds | 1 problems
Interviewed by Newgen Software
3196 views
2 comments
0 upvotes
company logo
Software Engineer
3 rounds | 6 problems
Interviewed by HashedIn
2575 views
0 comments
0 upvotes
company logo
Software Engineer
2 rounds | 2 problems
Interviewed by Ernst & Young (EY)
0 views
0 comments
0 upvotes