Tcs Coding Questions 2021 ((new)) | REAL |
Given N, print first N Fibonacci numbers.
Input: arr = [1, 5, 7, 1, 5], K = 6 Pairs: (1,5) at indices (0,1) and (0,3), but unique values? Here values (1,5) is one pair. So answer = 1. Tcs Coding Questions 2021
arr = list(map(int, input().split())) target = int(input()) print(count_pairs(arr, target)) Given N, print first N Fibonacci numbers
Understanding the specific types of coding challenges presented during the 2021 placement season is essential for any candidate looking to crack the TCS NQT Ninja or Digital tracks. This comprehensive guide breaks down the core patterns, syllabus structures, and frequently asked coding questions from 2021, complete with optimized programmatic solutions. Evolution of the TCS Coding Test Pattern (2021) So answer = 1
Three trainees (A, B, C) run a 3-round fitness test. The oxygen level of each trainee is recorded after each round. Find the trainee with the highest average oxygen level. If the average oxygen level of any trainee is below 70, they are unfit. If multiple trainees have the same highest average, display all of them.
Usually a generous time limit (e.g., 90 minutes) for 2 questions 0.5.4 .