DSA Tracker

Blog

Guide

DSA for TCS, Infosys & Wipro, What Mass Recruiters Test

TCS NQT, Infosys, and Wipro don't test LeetCode-hard DSA. They test fundamentals, aptitude, and basic coding.

Riya Kushwaha, DSA Tracker team2 min readUpdated
On this page

If your near-term target is TCS, Infosys, Wipro, Cognizant, or Accenture, grinding LeetCode-hard dynamic programming is mostly wasted effort. Mass recruiters hire at huge scale, so their process optimises for fundamentals, aptitude, and basic coding under time pressure, not exotic algorithms. Knowing this saves you weeks.

The mass-recruiter bar is "can you write correct, simple code and pass the aptitude + verbal sections," not "can you solve a hard graph problem." Over-indexing on hard DSA here is a classic misallocation.

What the rounds look like

  • Aptitude: quantitative, logical reasoning, verbal. Often the biggest filter. Practise this as seriously as coding.

  • Coding: 1–2 problems on arrays, strings, basic math, patterns, loops, and simple logic. Occasionally a basic data structure. Rarely hard.

  • Pseudocode / MCQ (TCS NQT style): reading and reasoning about code, output prediction, basic complexity.

  • Verbal / email writing: yes, really. Don't skip it.

The DSA you actually need

PriorityTopics

CoreArrays, strings, basic math, patterns/loops, simple recursion, sorting/searching
HelpfulHash maps, basic linked lists, stacks/queues
Skip (for now)Hard DP, advanced graphs, segment trees, tricky greedy

Where to spend your time

In rough order of prep time: aptitude first, then basic coding, then pseudocode/MCQ and verbal rounds. If you're also targeting product companies later, build the deeper DSA after you've cleared the mass-recruiter basics; the foundation transfers, the over-preparation doesn't transfer backwards.

For the deeper product-vs-service split, read service vs product company DSA prep. When you're ready to specialise by role, DSA Tracker reorders the curated sheet so you drill the right patterns first, and the most important DSA topics post covers the shared foundation every track needs.

The 20 problems that cover mass-recruiter coding rounds

The coding questions at TCS, Infosys, Wipro, Cognizant and Accenture come from a small pool of shapes, and each shape has a canonical problem in the tracker. Arrays: Reverse the Array, Maximum and Minimum Element in an Array, Rotate Array, Majority Element, Two Sum. Strings: Valid Palindrome, Reverse Words in a String, Valid Anagram, Longest Common Prefix, Roman to Integer. Math and patterns: Pascal's Triangle, Climbing Stairs. Searching and sorting: Binary Search, Sort Colors, Merge Sorted Arrays. Basic structures, for the occasional second question: Valid Parentheses, Reverse Linked List, Middle of Linked List. Solve each one twice, the second time under a timer, and write the time complexity next to your answer, because the MCQ section asks for exactly that. If you can do these twenty without notes, the coding section is not the round that will eliminate you.

Further reading: Binary search on Wikipedia.

Share

XLinkedInWhatsApp

Frequently asked questions

Does TCS NQT ask DSA questions?

Only basic ones. The coding section is one or two problems on arrays, strings, loops and simple math, plus pseudocode and output-prediction MCQs. Aptitude and verbal sections filter more candidates than the coding does.

What is the difference between TCS Ninja and TCS Digital preparation?

Digital raises the coding bar to LeetCode easy-to-medium with a slightly harder advanced coding round, while Ninja stays at fundamentals. Both keep aptitude and verbal as major filters, so neither justifies hard graph or DP practice.

Should I prepare hard DSA if I target Infosys or Wipro first?

Not before clearing the basics. Finish arrays, strings, sorting, searching and simple recursion with clean, correct code under time pressure, then add deeper DSA only if you also plan to apply to product companies afterwards.

Practice what you just read

Keep reading