Most-reported questions and how to practice them
46 coding questions reported by candidates for Cognizant, sorted by how often they were reported. Source: community-sourced LeetCode company lists.
Of the 46 questions reported for Cognizant, 33% are medium, 4% are hard and 63% are easy. The most reported are Count Subarrays of Length Three With a Condition, Two Sum, Palindrome Number, Smallest Value of the Rearranged Number, Longest Substring Without Repeating Characters.
This list comes from community-sourced LeetCode company lists. It covers coding questions only. It does not tell us how many rounds Cognizant runs, what each round covers, or what it pays, and those change by role, level and team, so we do not list them. Ask your recruiter what each round covers, and check the company's careers page.
Prepare for the rest of the loop with the coding interview patterns guide, the system design framework, and the STAR method guide. Written by Kieron.
Practice what you read with a free AI mock interview, see how the tools compare in our AI interview copilot comparison, or check Aissence pricing.
46 LeetCode questions — sorted by frequency. Question frequency is community-sourced from public interview reports and may not reflect the current process; verify details with the employer.
Last reviewed: September 5, 2026 · Source: LeetCode company-wise interview questions (community reports) · Reviewed by the Aissence Editorial Team.
Count Subarrays of Length Three With a Condition
Two Sum
Palindrome Number
Smallest Value of the Rearranged Number
Longest Substring Without Repeating Characters
Fibonacci Number
Valid Anagram
Longest Palindromic Substring
Merge Sorted Array
Second Highest Salary
Sort Array By Absolute Value
Reverse Integer
Product Sales Analysis I
Maximum Subarray
Remove Duplicates from Sorted Array
Median of Two Sorted Arrays
Valid Palindrome
First Missing Positive
Move Zeroes
Replace Employee ID With The Unique Identifier
Start with the 30 most reported Cognizant questions, then work down the list.
Mediums are the bulk of the list (33%), so spend most of your time there.
Time yourself: 20 to 30 minutes per medium, then explain your solution out loud as if to an interviewer.
After each problem write down the pattern and the signal that revealed it. Patterns transfer to problems you have not seen.
Pair coding practice with a system design framework and prepared behavioral stories; most loops include more than coding.
Practice answering out loud with an AI interviewer built from your resume and the job description, and get a score and specific fixes for each answer. We are not affiliated with Cognizant, and the mock interview is general practice rather than a simulation of Cognizant's own format.
Run a free mock interview from your resume and see where your answers need work.
Start Preparing Free