QUESTIONS BY COMPANY

Cognizant LeetCode Questions 2026

Browse LeetCode problems frequently asked by Cognizant. Filter by difficulty and timeframe to focus your interview prep.

Last updated: 20 Feb 2026

ProblemDifficultyFrequencyTopics
Two SumEASY
87.5%
ArrayHash Table
Reverse IntegerMEDIUM
62.5%
Math
Palindrome NumberEASY
87.5%
Math
Happy NumberEASY
50%
Hash TableMathTwo Pointers
Smallest Value of the Rearranged NumberMEDIUM
87.5%
MathSorting
Fibonacci NumberEASY
75%
MathDynamic ProgrammingRecursionMemoization
Valid AnagramEASY
62.5%
Hash TableStringSorting
Product Sales Analysis IEASY
62.5%
Database
Maximum SubarrayMEDIUM
62.5%
ArrayDivide and ConquerDynamic Programming
Count Subarrays of Length Three With a ConditionEASY
100%
Array
Remove Duplicates from Sorted ArrayEASY
50%
ArrayTwo Pointers
Longest Palindromic SubstringMEDIUM
75%
Two PointersStringDynamic Programming
Students and ExaminationsEASY
50%
Database
Fizz BuzzEASY
50%
MathStringSimulation
Merge Sorted ArrayEASY
62.5%
ArrayTwo PointersSorting
Longest Substring Without Repeating CharactersMEDIUM
75%
Hash TableStringSliding Window
Second Highest SalaryMEDIUM
75%
Database
Median of Two Sorted ArraysHARD
62.5%
ArrayBinary SearchDivide and Conquer
Add Two NumbersMEDIUM
50%
Linked ListMathRecursion
Search Insert PositionEASY
50%
ArrayBinary Search

Need Help Solving These Problems?

CodingInterviewAI can instantly identify algorithms and generate optimal solutions for any LeetCode problem. Get step-by-step explanations and ace your next technical interview.

CodingInterviewAI logo

© 2026 CodingInterviewAI. All rights reserved

CodingInterviewAI

HomeBlogGive Feedback