back to top
Tuesday, September 23, 2025
Seats Filling Fast.. Enroll Nowspot_img

TOP 100 TCS NQT CODING QUESTIONS

The TCS National Qualifier Test (NQT) is one of the most important assessments for anyone aspiring to work at Tata Consultancy Services. To succeed, you need to be well-prepared, especially when it comes to coding challenges. Whether you are a beginner or an experienced coder, practicing coding problems is a great way to sharpen your skills and get exam-ready.

Below, we’ve compiled a comprehensive list of coding problems categorized by topics, which will help you cover a wide range of concepts and techniques essential for cracking the TCS NQT.

TOP 100 TCS NQT CODING QUESTIONS

Problems on Arrays
Arrays are one of the most important data structures, and mastering array problems will help you tackle a variety of challenges. Here are some key problems to practice:

  1. Find the smallest number in an array
  2. Find the largest number in an array
  3. Second Smallest and Second Largest element in an array
  4. Reverse a given array
  5. Count frequency of each element in an array
  6. Rearrange array in increasing-decreasing order
  7. Calculate sum of the elements of the array
  8. Rotate array by K elements – Block Swap Algorithm
  9. Average of all elements in an array
  10. Find the median of the given array
  11. Remove duplicates from a sorted array
  12. Remove duplicates from unsorted array
  13. Adding Element in an array
  14. Find all repeating elements in an array
  15. Find all non-repeating elements in an array
  16. Find all symmetric pairs in array
  17. Maximum product subarray in an array
  18. Replace each element of the array by its rank in the array
  19. Sorting elements of an array by frequency
  20. Rotation of elements of array- left and right
  21. Finding equilibrium index of an array
  22. Finding Circular rotation of an array by K positions
  23. Sort an array according to the order defined by another array
  24. Search an element in an array
  25. Check if Array is a subset of another array or notProblems on Numbers


    Number-based problems are fundamental in competitive programming. These will help you improve your mathematical reasoning and logic:

  26. Check if a number is palindrome or not
  27. Find all Palindrome numbers in a given range
  28. Check if a number is prime or not
  29. Prime numbers in a given range
  30. Check if a number is armstrong number of not
  31. Check if a number is perfect number
  32. Even or Odd
  33. Check weather a given number is positive or negative
  34. Sum of first N natural numbers
  35. Find Sum of AP Series
  36. Program to find sum of GP Series
  37. Greatest of two numbers
  38. Greatest of three numbers
  39. Leap Year or not
  40. Reverse digits of a number
  41. Maximum and Minimum digit in a number
  42. Print Fibonacci upto Nth Term
  43. Factorial of a number
  44. Power of a number
  45. Factors of a given number
  46. Print all prime factors of the given number
  47. Check if a number is a strong number or not
  48. Check if a Number is Automorphic
  49. GCD of two numbers
  50. LCM of two numbers
  51. Check if a number is Harshad number
  52. Check if the number is abundant number or not
  53. Sum of digits of a number
  54. Sum of numbers in the given range
  55. Permutations in which N people can occupy R seats in a classroom
  56. Program to add two fractions
  57. Replace all 0s with 1s in a given integer
  58. Can a number be expressed as a sum of two prime numbers
  59. Calculate the area of circle
  60. Program to find roots of a Quadratic EquationProblems on Number System


    These problems will test your understanding of number systems, a crucial concept for many coding interviews and exams:

  61. Convert Binary to Decimal
  62. Convert binary to octal
  63. Decimal to Binary conversion
  64. Convert decimal to octal
  65. Convert octal to binary
  66. Convert octal to decimal
  67. Convert digits/numbers to wordsProblems on Sorting


    Sorting algorithms are essential, and understanding the different techniques will give you an edge in problem-solving:

  68. Bubble Sort Algorithm
  69. Selection Sort Algorithm
  70. Insertion Sort Algorithm
  71. Quick Sort Algorithm
  72. Merge sort algorithm


    Problems on Strings

    String manipulation is an important skill, and there are many practical problems that require efficient string handling:

  73. Check if a given string is palindrome or not
  74. Count number of vowels, consonants, spaces in String
  75. Find the ASCII value of a character
  76. Remove all vowels from the string
  77. Remove spaces from a string
  78. Remove characters from a string except alphabets
  79. Reverse a String
  80. Remove brackets from an algebraic expression
  81. Sum of the numbers in a String
  82. Capitalize first and last character of each word
  83. Calculate frequency of characters in a string
  84. Find Non-repeating characters of a String
  85. Check if two strings are anagram of each other
  86. Count common sub-sequence in two strings
  87. Check if two strings match where one string contains wildcard characters
  88. Return maximum occurring character in the input string
  89. Remove all duplicates from the input string.
  90. Print all the duplicates in the input string.
  91. Remove characters from first string present in the second string
  92. Change every letter with the next lexicographic alphabet in the given string
  93. Write a program to find the largest word in a given string.
  94. Write a program to sort characters in a string
  95. Count number of words in a given string
  96. Write a program to find a word in a given string which has the highest number of repeated letters
  97. Change case of each character in a string
  98. Concatenate one string to another
  99. Write a program to find a substring within a string. If found display its starting position
  100. Reverse words in a string

Conclusion:
The key to excelling in the TCS NQT or any coding interview is consistent practice and problem-solving. By working through a diverse set of coding challenges across arrays, numbers, strings, and sorting, you’ll develop a strong grasp of the fundamental concepts and algorithms. Make sure to dedicate time regularly to practice, and remember, each problem you solve brings you one step closer to mastering coding and securing your future career at TCS. Keep coding, stay motivated, and good luck with your preparation!

Join Our Telegram Group (1.9 Lakhs + members):- Click Here To Join

For Experience Job Updates Follow – FLM Pro Network – Instagram Page

For All types of Job Updates (B.Tech, Degree, Walk in, Internships, Govt Jobs & Core Jobs) Follow – Frontlinesmedia JobUpdates – Instagram Page

For Healthcare Domain Related Jobs Follow – Frontlines Healthcare – Instagram Page

For Major Job Updates & Other Info Follow – Frontlinesmedia – Instagram Page

 

Related Articles

57,000FansLike
1,094,000FollowersFollow
374,000SubscribersSubscribe
flm excel with ai course in telugu side flm
Alert: FLM Launches Excel with AI Online Training

Latest Articles