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

Programmer Analyst Trainee

Cognizant India
upvote
share-icon
2 rounds | 2 Coding problems

Interview preparation journey

expand-icon
Journey
I started with very basic concepts and honestly had no clear roadmap in the beginning. I focused on learning one step at a time—first understanding programming, then building small projects, and later participating in hackathons and online programs to gain exposure. There were many moments when things didn’t work, I got stuck, or I felt I wasn’t improving fast enough, but I kept going. Over time, those small efforts began to pay off. I gained confidence, understood how real-world problems are solved, and gradually aligned my skills with the role I wanted. By the time the interview came, I wasn’t just preparing for questions; I was preparing to show who I had become through the journey. Cracking the interview felt less like a sudden achievement and more like the result of consistent practice and patience. Looking back, the key was simply not stopping when progress felt slow.
Application story
The Cognizant drive was conducted through my college’s placement cell. We registered internally, submitted our resumes, and then received the assessment schedule. After clearing the technical and HR evaluations, I received the offer for the ZENC role. The entire process was well-organized through college coordination.
Why selected/rejected for the role?
I believe I was selected because I had strong fundamentals, relevant project experience, and clear communication. I explained my projects well and demonstrated that I understood what I had built. My consistency and preparation helped me perform confidently throughout the interviews.
Preparation
Duration: 4 Months
Topics: Data Structures & Algorithms, OOPS, DBMS, SQL, REST APIs, Core Java, Collections Framework
Tip
Tip

Tip 1: Practice coding consistently and track your progress.

Tip 2: Build at least one real project and explain it well.

Tip 3: Revise fundamentals before the interview.

Application process
Where: Campus
Eligibility: 6+ CGPA, No active backlogs, (Salary Package: 4 LPA)
Resume Tip
Resume tip

Tip 1: Include at least one development project that you can explain confidently.

Tip 2: Keep your resume clean and avoid adding skills you can’t defend.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration120 minutes
Interview date14 Mar 2025
Coding problem1

The test was conducted online during the daytime with proctoring enabled. The environment was stable, with no connection or portal issues. No interviewer was present in this round, as it was a purely online evaluation. The test was automatically submitted at the end.

1. Two Sum

Easy
15m average time
83% success
0/40
Asked in companies
DelhiveryAmerican ExpressErnst & Young (EY)

Sam want to read exactly ‘TARGET’ number of pages.

He has an array ‘BOOK’ containing the number of pages for ‘N’ books.

Return YES/NO, if it is possible for him to read any 2 books and he can meet his ‘TARGET’ number of pages.

Example:
Input: ‘N’ = 5, ‘TARGET’ = 5
‘BOOK’ = [4, 1, 2, 3, 1] 

Output: YES
Explanation:
Sam can buy 4 pages book and 1 page book.
Problem approach

Step 1: Initially, I considered a brute-force approach, where I checked all pairs using two nested loops.
Step 2: Then, I shifted to a more efficient hashing approach using a set to store visited numbers.
Step 3: For each element, I checked if target - element was already in the set; if yes, the answer is YES.
Step 4: If no such pair was found after scanning the entire array, I printed NO.
Step 5: This improved the time complexity from O(N²) to O(N).

Try solving now
02
Round
Medium
Face to Face
Duration30 minutes
Interview date7 Apr 2025
Coding problem1

The interview took place during the daytime in one of the college halls arranged for interviews. The environment was calm and organized, with coordinators managing the flow of students. The interviewer was polite and asked both conceptual and situational questions, focusing more on understanding rather than grilling. They also assessed how confidently and clearly I could explain my projects and code logic. There was no overnight waiting or late timings—everything was completed within the scheduled slot.

1. Reverse Linked List

Moderate
15m average time
85% success
0/80
Asked in companies
DelhiveryOracleCIS - Cyber Infrastructure

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

Step 1: I first explained the brute recursive idea.
Step 2: Then I explained the iterative method using prev, curr, and next pointers.
Step 3: I discussed time complexity O(N) and space complexity O(1).
Step 4: Interviewer was satisfied with clarity and pointer movement explanation.

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

What is the purpose of the return keyword?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by OYO
4782 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Amazon
1011 views
0 comments
0 upvotes
company logo
SDE - 1
2 rounds | 5 problems
Interviewed by Meesho
6543 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 9 problems
Interviewed by Salesforce
3566 views
0 comments
0 upvotes