Skip to content

Cognizant interview questions

The most frequent LeetCode problems tagged to Cognizant. This is a data-only page. For process and behavioral prep, use the coding guide and behavioral guide.

Based on 7 distinct problems tagged to Cognizant in the last 6 months (0 in the last 30 days, 4 in the last 3 months, 39 all-time) across two open datasets of LeetCode company tags. Tags are user-reported, so treat frequency as a signal, not a promise.

Difficulty mix (last 6 months): Easy 71%, Medium 29%

Most tagged topics (share of problems): String 43%, Array 43%, Two Pointers 43%, Hash Table 29%, Sliding Window 14%, String Matching 14%, Z Algorithm 14%, Knuth, Morris, Pratt Algorithm 14%, Boyer, Moore String-Search Algorithm 14%, Math 14%

Watch out: Cognizant has thin LeetCode data. Weight the reported questions and the format notes above more than this list.

Most frequent problems

Ranked by frequency, weighted toward the last 30 days. Classics like Two Sum sit near the top of almost every company's list because users tag them everywhere. Solve those fast. The signature list below is more specific to this company.

# Problem Difficulty Last seen Topics
1 Longest Substring Without Repeating Characters Medium 3 months Hash Table, String, Sliding Window
2 Two Sum Easy 3 months Array, Hash Table
3 Move Zeroes Easy 3 months Array, Two Pointers
4 Find the Index of the First Occurrence in a String Easy 3 months Two Pointers, String, String Matching, Z Algorithm
5 Palindrome Number Easy 6 months Math
6 Valid Palindrome Easy 6 months Two Pointers, String
7 Rotting Oranges Medium 6 months Array, Breadth-First Search, Matrix

Sources

Next: More companies