The TCS National Qualifier Test (NQT) 2021 marked a significant shift in the recruitment landscape for India's largest IT services company. For the 2021 batch of engineering graduates, TCS introduced a revamped selection process that placed a strong emphasis on programming skills—making the coding section a critical determinant of success.
Given a string containing alphabets and special characters (e.g., @, #, $, !), reverse only the alphabetic characters while keeping special characters in their original positions.
The shift to an adaptive test pattern and stricter time limits per question reflected TCS's emphasis on efficient problem-solving under pressure. Top performers not only wrote correct code but also optimized for time and edge cases.
candies, update the jar or return "INVALID INPUT" if the request exceeds current stock. If stock falls below a threshold , refill it.
TCS NQT Coding Questions 2021: A Comprehensive Preparation Guide
Subarray problems, sliding window techniques, rotations, and element frequency counting. Tcs Coding Questions 2021
int main() char str[100]; int freq[256] = 0; scanf("%s", str); int max = 0;
Counter variable inside nested loops.
print(first_non_repeating_char("aabbc")) # Output: "c"
Geared towards foundational roles, focusing on basic programming aptitude, conditional logic, arrays, and strings.
Algorithms must complete execution within 1.0 to 2.0 seconds. For arrays of size The TCS National Qualifier Test (NQT) 2021 marked
Basic mathematical logic, array manipulation, string processing, and loop-based structures.
Array Manipulation: Rotation, sub-arrays, and frequency counting.
Given an integer array (may contain negative numbers), find the contiguous subarray with the largest sum and print that sum.
#include<bits/stdc++.h> using namespace std;
Bekijk opgeslagen projecten