Skip to content

Interview Solver

FeaturesPricingHelp
Sign In
FeaturesPricingHelpSign In
  1. Interview Questions
  2. /
  3. Cognizant

Cognizant LeetCode Interview Questions

Practice 20 real coding problems frequently asked in Cognizant technical interviews. Master these questions to ace your next Cognizant software engineering interview.

5 Easy
13 Medium
2 Hard

Top Topics at Cognizant

ArrayStringTwo PointersStackHash Table

Ace your Cognizant interview with AI

Get real-time AI assistance during your actual interview. Invisible to screensharing.

Start Free Trial

Cognizant Interview Problems

ProblemDifficultyDiffFrequencyTopicsAction
Find the Index of the First Occurrence in a String
100%
EasyE
100%
Two PointersString+1
Solve→
Find K Pairs with Smallest Sums
69%
MediumM
69%
ArrayHeap (Priority Queue)
Solve→
String Compression
68%
MediumM
68%
Two PointersString
Solve→
Buildings With an Ocean View
68%
MediumM
68%
ArrayStack+1
Solve→
Coin Change
67%
MediumM
67%
ArrayDynamic Programming+1
Solve→
Gas Station
63%
MediumM
63%
ArrayGreedy
Solve→
Maximum Sum of Distinct Subarrays With Length K
55%
MediumM
55%
ArrayHash Table+1
Solve→
Subsets II
53%
MediumM
53%
ArrayBacktracking+1
Solve→
Remove Stones to Minimize the Total
47%
MediumM
47%
ArrayGreedy+1
Solve→
Valid Palindrome
47%
EasyE
47%
Two PointersString
Solve→
Minimum Remove to Make Valid Parentheses
46%
MediumM
46%
StringStack
Solve→
K Inverse Pairs Array
36%
HardH
36%
Dynamic Programming
Solve→
Palindrome Linked List
34%
EasyE
34%
Linked ListTwo Pointers+2
Solve→
Pascal's Triangle
32%
EasyE
32%
ArrayDynamic Programming
Solve→
Binary Tree Right Side View
32%
MediumM
32%
TreeDepth-First Search+2
Solve→
Add Two Integers
30%
EasyE
30%
Math
Solve→
First Missing Positive
27%
HardH
27%
ArrayHash Table
Solve→
Basic Calculator II
26%
MediumM
26%
MathString+1
Solve→
Maximum Number of Occurrences of a Substring
23%
MediumM
23%
Hash TableString+1
Solve→
Longest Substring Without Repeating Characters
21%
MediumM
21%
Hash TableString+1
Solve→

Similar Companies

Explore interview questions from other companies with similar interview patterns.

1mg
20 problems
Activtrak
20 problems
Affirm
20 problems
Anthropic
20 problems
Applovin
20 problems
Arcesium
20 problems

Frequently Asked Questions

What LeetCode problems does Cognizant ask in interviews?

Cognizant commonly asks 20 coding problems in technical interviews, including Find the Index of the First Occurrence in a String, Find K Pairs with Smallest Sums, String Compression. The difficulty breakdown is 5 Easy, 13 Medium, and 2 Hard problems.

How should I prepare for a Cognizant coding interview?

Focus on the most frequently asked problems first, especially those with high frequency scores. Cognizant interviews typically emphasize Array and String. Practice explaining your thought process while coding.

What is the difficulty level of Cognizant coding interviews?

Based on our data, Cognizant interviews include 5 Easy (25%), 13 Medium (65%), and 2 Hard (10%) problems.

Ready to ace your Cognizant interview?

Join thousands of engineers who landed offers at top tech companies.

Get Started Free

No credit card required

All CompaniesEasy ProblemsMedium ProblemsHard ProblemsBrowse by Topic
Interview Solver
  • Home
  • Pricing
  • Sign in
  • Contact
  • Blog
  • Companion
  • Help Center
  • Use Cases
  • Software Engineer
  • Product Manager
  • Misc
  • Privacy Policy
  • Terms and Conditions
  • Discord Community
  • Affiliate Program
  • Compare
  • All Comparisons
  • vs Final Round AI
  • vs UltraCode
  • vs Interview Coder
  • vs LockedIn AI
  • vs AI Apply
  • Free Tools
  • ATS Resume Checker
  • STAR Method Builder
  • Salary Lookup
  • Big O Cheat Sheet
  • Total Comp Calculator
  • View All →
  • Interview Questions
  • Google Questions
  • Amazon Questions
  • Microsoft Questions
  • Meta Questions
  • Apple Questions
  • TikTok Questions
  • View All →
© 2026 Interview Solver, Inc. All rights reserved.