Cognizant Coding Interview Questions: 25 Tagged Problems

25 coding problems tagged Cognizant — 23 easy · 2 medium — with solutions in 13 languages. Plus a 3-week study plan by topic.

  • Problems: 25
  • By difficulty: 23 easy · 2 medium
  • Languages: JavaScript, TypeScript, Python, Java, C++, C, C#, Go, Kotlin, Swift, Rust, PHP and Ruby
  • Cost: Free on every plan; sign in to run and submit

25 problems the CodeKairo catalogue tags as commonly asked in Cognizant's coding rounds — 23 easy and 2 medium, no hard ones — each judged by hidden tests in 13 languages. The most common topics among them are Strings (13), Arrays (9) and Hash Table (8). CodeKairo's Cognizant GenC — Aptitude mock covers the aptitude round of the Cognizant GenC assessment, a long paper in which reasoning outweighs everything else. The tag is the catalogue's own annotation of where a problem tends to come up — not a list published by Cognizant, which CodeKairo is not affiliated with.

Cognizant study plan by topic

All 25 problems tagged Cognizant over 3 weeks, about 8 h 50 min of solving, grouped by technique in the order they build on each other — Arrays, Strings, Hash Table and Counting and 7 more. It ends with the Cognizant GenC — Aptitude mock.

Week 1: Arrays, Strings, Hash Table +1

12 problems on Arrays, Strings, Hash Table and Counting, easiest first within each topic.

Week 2: Math, Sliding Window, Sorting +3

12 problems on Math, Sliding Window, Sorting, Simulation, Greedy and Bit Manipulation, easiest first within each topic.

Week 3: Number Theory

1 problem on Number Theory.

Finally: the timed test

Sit the Cognizant GenC — Aptitude mock under the clock — the coding problems are only one part of the round.

Take the Cognizant GenC — Aptitude mock

Cognizant test patterns

All problems tagged Cognizant

Easy (23)

Medium (2)

Topics Cognizant asks most