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

Intern

Cognizant
upvote
share-icon
1 rounds | 1 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 1 month
Topics: Data Structures, OOPS, DBMS, OOPs, Algorithms, DP, Greedy
Tip
Tip

Tip 1 : Try solving Prog questions
Tip 2 : Have a good resume
Tip 3 : Do learn some extra technologies eg. Web dev

Application process
Where: Campus
Eligibility: 6.75+ CGPA
Resume Tip
Resume tip

Tip 1 : Do not lie at all
Tip 2 : Have some projects listed

Interview rounds

01
Round
Easy
Online Coding Interview
Duration120 minutes
Interview date15 Oct 2020
Coding problem1

1. Maximum Difference

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

You are given an array 'ARR' of the 'N' element. Your task is to find the maximum difference between any of the two elements from 'ARR'.

If the maximum difference is even print “EVEN” without quotes. If the maximum difference is odd print “ODD” without quotes.

For example:

Given 'ARR' = [1, 10, 5, 2, 8, 1 ] , answer is "ODD".
Here the maximum difference is between 10 and 1, 10 - 1 = 9
Problem approach

Make sure you find max and min using inbuilt features

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

Which SQL keyword removes duplicate records from a result set?

Choose another skill to practice
Similar interview experiences
company logo
Intern
2 rounds | 3 problems
Interviewed by Cognizant
748 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Cognizant
793 views
0 comments
0 upvotes
company logo
Program Analyst
2 rounds | 6 problems
Interviewed by Cognizant
313 views
0 comments
0 upvotes
company logo
Programmer Analyst Trainee
3 rounds | 8 problems
Interviewed by Cognizant
455 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Intern
3 rounds | 4 problems
Interviewed by CIS - Cyber Infrastructure
497 views
0 comments
0 upvotes
company logo
Intern
1 rounds | 1 problems
Interviewed by Tata Consultancy Services (TCS)
1362 views
0 comments
0 upvotes