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

Genc Next

Cognizant
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 4 months
Topics: DBMS, DS Algo, OOPS, Aptitude questions, Interview questions - Puzzles, Guestimates
Tip
Tip

Tip 1 : Be proficient in aptitude 
Tip 2 : Good command in English 
Tip 3 : Thorough knowledge of your Resume

Application process
Where: Campus
Eligibility: 7 CGPA
Resume Tip
Resume tip

Tip 1 : Know your resume in and out
Tip 2 : One-page resume is enough

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date22 Nov 2021
Coding problem2

It was similar to any Amcat exam. Had around 60 questions in aptitude(quantitative and logical ability) and 30 questions in verbal and at last 2 coding questions

1. Shortest Path in a Binary Matrix

Moderate
37m average time
65% success
0/80
Asked in companies
CIS - Cyber InfrastructureMakeMyTripGoldman Sachs

You have been given a binary matrix of size 'N' * 'M' where each element is either 0 or 1. You are also given a source and a destination cell, both of them lie within the matrix.

Your task is to find the length of the shortest path from the source cell to the destination cell only consisting of 1s. If there is no path from source to destination cell, return -1.

Note:
1. Coordinates of the cells are given in 0-based indexing.
2. You can move in 4 directions (Up, Down, Left, Right) from a cell.
3. The length of the path is the number of 1s lying in the path.
4. The source cell is always filled with 1.
For example -
1 0 1
1 1 1
1 1 1
For the given binary matrix and source cell(0,0) and destination cell(0,2). Few valid paths consisting of only 1s are

X 0 X     X 0 X 
X X X     X 1 X 
1 1 1     X X X 
The length of the shortest path is 5.
Problem approach

Used 2D vector

Try solving now

2. Cycle Detection in a Singly Linked List

Moderate
15m average time
80% success
0/80
Asked in companies
InformaticaUrban Company (UrbanClap)PhonePe

You are given a Singly Linked List of integers. Return true if it has a cycle, else return false.


A cycle occurs when a node's next points back to a previous node in the list.


Example:
In the given linked list, there is a cycle, hence we return true.

Sample Example 1

Problem approach

I used the standard fast and slow pointer approach.

Try solving now
02
Round
Medium
HR Round
Duration45 minutes
Interview date25 Nov 2021
Coding problem1

Basic HR round. Simple and non technical questions were asked in this round

1. Basic HR Questions

  • Introduce yourself
  • What according to you has been the most encouraging moment for you?
  • What are your strengths?
  • What do you know about Cognizant?
Problem approach

Tip 1 : Be Confident 
Tip 2 : Answer Logically 
Tip 3 : Be patient

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
Genc Next
2 rounds | 5 problems
Interviewed by Cognizant
1249 views
0 comments
0 upvotes
company logo
Genc Next
2 rounds | 7 problems
Interviewed by Cognizant
1734 views
0 comments
0 upvotes
company logo
Genc Next
3 rounds | 6 problems
Interviewed by Cognizant
867 views
0 comments
0 upvotes
company logo
Genc Next
3 rounds | 9 problems
Interviewed by Cognizant
1064 views
0 comments
0 upvotes