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

Programmer Analyst Trainee

Cognizant
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2.5 Months
Topics: Data structures, Algorithms, OOPS, Puzzles, Aptitude
Tip
Tip

Tip 1 : Do atleast 2 projects
Tip 2 : Focus more on Puzzle solving

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

Tip 1 : Have some projects on resume.
Tip 2 : Do not put false things on resume. Review the projects before interview. Make sure you know the logic,working ,frameworks & programming language of the project mentioned on resume

Interview rounds

01
Round
Hard
Online Coding Interview
Duration180 Minutes
Interview date23 May 2021
Coding problem2

Timmings - Evening
This online round was divided into 4 sub rounds
Round 1- Quantative Aptitude: This round consisted of 60 MCQ questions and covered topics like profit & loss, shapes & sizes ,Simple and Compound Interest etc.
Round 2- Qualitative Aptitude: This round consisted of 60 MCQ questions and covered topics like boats & streams,Profit and loss, comprehension passage, anonyms, synonyms etc.
Round 3- Automata Fix : Need to solve atleast 4 out of 7 questions
Round 4- Essay writing: Need to write atleast 500 words

1. Least Greater Element

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

You are given an array 'ARR' of Integers. Your task is to replace each element of the array with the smallest element, which is strictly greater than that element and is present on the right side of that element in the array i.e. for each valid index ‘i’ replace ARR[i] with the smallest ARR[j] such that ARR[j]>ARR[i] and j>i.

In case there exists no such element satisfying the above conditions for a particular array element, replace it with -1.

For example :

Consider the array ARR = [ 1, 4, 2, 6 ] having 4 elements.
The array containing the Least Greater Elements for the above array will be [ 2, 6, 6, -1 ].
Try solving now

2. Product Of Array Except Self

Easy
26m average time
0/40
Asked in companies
FacebookDelhiveryIntuit

You have been given an integer array/list (ARR) of size N. You have to return an array/list PRODUCT such that PRODUCT[i] is equal to the product of all the elements of ARR except ARR[i]

 Note :
Each product can cross the integer limits, so we should take modulo of the operation. 

Take MOD = 10^9 + 7 to always stay in the limits.
Follow up :
Can you try solving the problem in O(1) space?
Try solving now
02
Round
Hard
HR Round
Duration20 Minutes
Interview date30 May 2021
Coding problem1

This round mainly focused on Puzzle solving, how one approaches the problem, team work and about python concepts like OOPS, functional programming as I have mentioned that my resume

Rest other questions were about previous experiences, internships etc that I did in college and what will be the trending technologies in future.

1. Puzzle

A man starts at point X then moves 10 m north & then turns left & then moves 5 m south & turns right.

What's his approximate distance from initial position.
Basically, here interviewer focused on the approach taken.


 

Problem approach

Tip 1 : Be calm and confident
Tip 2 : Speak about the approach you are following don't directly jump to the solution

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
Programmer Analyst Trainee
4 rounds | 6 problems
Interviewed by Cognizant
1173 views
0 comments
0 upvotes
company logo
Programmer Analyst Trainee
4 rounds | 5 problems
Interviewed by Cognizant
0 views
0 comments
0 upvotes
company logo
Programmer Analyst Trainee
3 rounds | 7 problems
Interviewed by Cognizant
925 views
0 comments
0 upvotes
company logo
Programmer Analyst Trainee
3 rounds | 8 problems
Interviewed by Cognizant
773 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Programmer Analyst Trainee
3 rounds | 4 problems
Interviewed by Newgen Software
811 views
0 comments
0 upvotes