Tcs Coding Questions 2021

Problem Description: Two sets of numbers are displayed. Calculate the sums of both sets. If both sums are odd, determine the minimum number of swaps required to make both sums even. If impossible, output -1.

Usually, one question was asked. The difficulty was easy to medium. The focus was on basic array manipulation, string manipulation, and mathematical logic.

elements will time out. Candidates aiming for the Digital role must optimize code to Tcs Coding Questions 2021

The compiler supported C, C++, Java, and Python. 2. Top TCS Coding Questions 2021 (Memory-Based)

Source: PrepInsta TCS Ninja Toppers Test Questions Problem Description: Two sets of numbers are displayed

The time limit ranged from 45 to 60 minutes for the entire coding section.

Master the TCS NQT 2021 Coding Round: Most Frequently Asked Questions & Solutions Getting into Tata Consultancy Services (TCS) If impossible, output -1

Given a number N, reduce it by computing the sum of its digits until a single-digit number is obtained. Check if this single digit is '1' (UNO) or not.

Here are some sample TCS coding questions 2021: