Tcs Coding Questions 2021 ^hot^

Tcs Coding Questions 2021 ^hot^

Input: 9875 → 9+8+7+5=29 → 2+9=11 → 1+1=2. Recursion or formula 1 + (num-1)%9 .

matrix of 0s (empty) and 1s (full), find the row index with the maximum number of 1s. Mixed Series cap N raised to the t h power : Find the cap N raised to the t h power term of a series like (often a combination of two different geometric series). Trainee Oxygen Levels Tcs Coding Questions 2021

The represent a sweet spot in the company’s hiring history—modern enough to test logic, yet classic enough to be predictable. By focusing on array manipulation, two-pointer techniques, recursion, and edge-case handling, you can easily score 85%+ in the coding section. Input: 9875 → 9+8+7+5=29 → 2+9=11 → 1+1=2

Problem Statement: Given a string, determine if it can be a palindrome by removing . Print "Yes" if possible, else "No". This is a variation of LeetCode 680 (Valid Palindrome II). Mixed Series cap N raised to the t

Input: a,b$c → Output: c,b$a

Involved story-based problems, complex data structures, or optimization techniques like Dynamic Programming. Time allotted was generally 30–45 minutes. Top 5 TCS Coding Questions from 2021

A Cab service offers rides based on distance. The fare is calculated as follows:

Menu
Cerrar
Carrito
Cerrar
Back
Account
Cerrar