Tcs Coding Questions 2021 ~upd~ ✦

In 2021, TCS streamlined its recruitment process into two primary roles based on performance: and TCS Digital . The coding section was designed to filter candidates based on algorithmic thinking, mathematical logic, and code optimization. Key Highlights of the 2021 Pattern

Input: "1100111001" Output: 3 (groups: "11", "111", "1")

First line: N (size) Second line: N integers. Tcs Coding Questions 2021

An international organization defines a "Prime Minister" number as a positive integer greater than 10 that satisfies two conditions:

print(is_palindrome("madam")) # Output: True In 2021, TCS streamlined its recruitment process into

Difficulty breakdown (approximate)

1 question to be solved in 15–30 minutes, focusing on basic logic and data types. Advanced Coding: M = 18

Given a string of text and a target keyword, find the total number of times the keyword appears in the text. The search must be case-insensitive.

M = 18. Standard greedy uses 10+5+3 = 3 coins. But 18-10=8, and 8 is not divisible by 3, so allowed. If M=20, standard: 10+10 =2 coins, but after first 10, remainder=10 (not divisible by 3) → allowed. If M=15, standard: 10+5=2 coins, but remainder after 10 is 5 (not div by 3) → allowed. Actually this twist made it tricky.

To tackle the coding questions, it's crucial to first understand the structure of the TCS NQT exam in 2021. The exam typically consisted of several sections, with the coding component playing a decisive role.

© Familiality 2007-2025 – All rights reserved