- Interview Questions
- /
- 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.
Top Topics at Cognizant
Ace your Cognizant interview with AI
Get real-time AI assistance during your actual interview. Invisible to screensharing.
Cognizant Interview Problems
| Problem | DifficultyDiff | Action |
|---|---|---|
Find the Index of the First Occurrence in a String 100% | EasyE | Solve→ |
Find K Pairs with Smallest Sums 69% | MediumM | Solve→ |
String Compression 68% | MediumM | Solve→ |
Buildings With an Ocean View 68% | MediumM | Solve→ |
Coin Change 67% | MediumM | Solve→ |
Gas Station 63% | MediumM | Solve→ |
Maximum Sum of Distinct Subarrays With Length K 55% | MediumM | Solve→ |
Subsets II 53% | MediumM | Solve→ |
Remove Stones to Minimize the Total 47% | MediumM | Solve→ |
Valid Palindrome 47% | EasyE | Solve→ |
Minimum Remove to Make Valid Parentheses 46% | MediumM | Solve→ |
K Inverse Pairs Array 36% | HardH | Solve→ |
Palindrome Linked List 34% | EasyE | Solve→ |
Pascal's Triangle 32% | EasyE | Solve→ |
Binary Tree Right Side View 32% | MediumM | Solve→ |
Add Two Integers 30% | EasyE | Solve→ |
First Missing Positive 27% | HardH | Solve→ |
Basic Calculator II 26% | MediumM | Solve→ |
Maximum Number of Occurrences of a Substring 23% | MediumM | Solve→ |
Longest Substring Without Repeating Characters 21% | MediumM | Solve→ |
Similar Companies
Explore interview questions from other companies with similar interview patterns.
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 FreeNo credit card required