These are Algorithms questions of the kind TCS actually asks — the patterns that keep coming back in TCS's AI project interviews, where what matters is applying Algorithms sensibly for clients rather than research depth. Treat this page as a mock interview: say every answer out loud before revealing it. If one surprises you, the lesson behind it is linked at the bottom.
TCS Algorithms concept questions
Compare linear search and binary search: costs, requirements, and a concrete rule for when each is the right choice.
Asked in
TCS Algorithms applied & hands-on questions
Check whether n is prime, efficiently. Why is trial division up to √n enough, and what's the complexity?
Asked in
Check whether 1221 is a palindrome WITHOUT converting to a string: reverse the number arithmetically. Handle the follow-ups: negatives, and why reversing only half is smarter.
Asked in
How to use this page: TCS rarely asks something you've never seen — they ask a standard Algorithms concept and then push one level deeper ("why?", "what would you do if..."). Master the concept in the Algorithms course lessons, and the follow-up stops being scary.
Keep practising: Binary Search, Dynamic Programming, BFS & DFS and Patterns & Strategy cover what most TCS Algorithms rounds test — and the TCS NQT exam guide covers the rest of their selection process.

