Coding Questions 2021 | Tcs

TCS loved problems that mix string indexing and array frequency. Question 4: "Minimum Coins" (Greedy Algorithm – Modified) Problem Statement: In a foreign country, the currency denominations are [1, 3, 5, 10, 25, 50] . Given an amount M (≤ 1000), find the minimum number of coins needed. But with a twist: You cannot use the 10-rupee coin if the remaining amount after using other coins is divisible by 3.

Q2 Solution: String reversal

Don't just read the solutions. Open your IDE right now, type them out, run test cases, break them, and fix them. That muscle memory will save you on exam day. Tcs Coding Questions 2021

Q1 Solution: Sieve of Eratosthenes

For millions of engineering graduates in India, Tata Consultancy Services (TCS) represents more than just a job—it is a career launchpad. As the largest private-sector employer in the country, TCS conducts its National Qualifier Test (NQT) yearly. While the exam pattern evolves, the coding section remains the highest-scoring and most decisive part. TCS loved problems that mix string indexing and