Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TCS Coding Questions – Top 100 Programming Problems

A comprehensive collection of the Top 100+ TCS Coding Questions frequently asked in TCS NQT, TCS Digital, TCS Prime, and placement interviews. This repository provides well-structured Java solutions with optimized approaches, explanations, and time & space complexity to help students prepare for coding rounds and technical interviews.


About

This repository is designed for students and job seekers preparing for TCS placement exams and other coding interviews. It includes carefully selected programming questions covering the most important topics asked in TCS coding rounds. Every solution is implemented in Java with a focus on readability, efficiency, and interview-ready coding practices.


Features

  • ✅ 100+ Frequently Asked TCS Coding Questions
  • ✅ Beginner-friendly Java solutions
  • ✅ Optimized algorithms and clean code
  • ✅ Well-organized folder structure
  • ✅ Time & Space Complexity for important problems
  • ✅ Covers all major programming concepts
  • ✅ Ideal for placements, coding interviews, and competitive programming

Topics Covered

Arrays

  • Find the Smallest Number in an Array
  • Find the Largest Number in an Array
  • Second Smallest and Second Largest Element
  • Reverse an Array
  • Count Frequency of Each Element
  • Rearrange Array in Increasing-Decreasing Order
  • Sum of Array Elements
  • Average of Array Elements
  • Find Median of an Array
  • Rotate Array by K Elements
  • Circular Rotation of an Array
  • Remove Duplicates from Sorted Array
  • Remove Duplicates from Unsorted Array
  • Add an Element to an Array
  • Find Repeating Elements
  • Find Non-Repeating Elements
  • Find Symmetric Pairs
  • Maximum Product Subarray
  • Replace Elements by Their Rank
  • Sort Elements by Frequency
  • Left & Right Rotation of Array
  • Equilibrium Index of an Array
  • Sort Array According to Another Array
  • Search an Element in an Array
  • Check if an Array is a Subset of Another Array

Numbers

  • Check Palindrome Number
  • Palindrome Numbers in a Range
  • Check Prime Number
  • Prime Numbers in a Range
  • Armstrong Number
  • Perfect Number
  • Even or Odd
  • Positive or Negative Number
  • Sum of First N Natural Numbers
  • Sum of AP Series
  • Sum of GP Series
  • Greatest of Two Numbers
  • Greatest of Three Numbers
  • Leap Year
  • Reverse a Number
  • Maximum & Minimum Digit
  • Fibonacci Series
  • Factorial of a Number
  • Power of a Number
  • Factors of a Number
  • Prime Factors of a Number
  • Strong Number
  • Automorphic Number
  • GCD of Two Numbers
  • LCM of Two Numbers
  • Harshad Number
  • Abundant Number
  • Sum of Digits
  • Sum of Numbers in a Range
  • Permutations (nPr)
  • Add Two Fractions
  • Replace All 0's with 1's
  • Express Number as Sum of Two Prime Numbers
  • Area of a Circle
  • Roots of a Quadratic Equation

Number System

  • Binary to Decimal
  • Binary to Octal
  • Decimal to Binary
  • Decimal to Octal
  • Octal to Binary
  • Octal to Decimal
  • Convert Numbers to Words

Sorting Algorithms

  • Bubble Sort
  • Selection Sort
  • Insertion Sort
  • Merge Sort
  • Quick Sort

Strings

  • Check Palindrome String
  • Count Vowels, Consonants & Spaces
  • ASCII Value of a Character
  • Remove Vowels
  • Remove Spaces
  • Remove Non-Alphabet Characters
  • Reverse a String
  • Remove Brackets from an Expression
  • Sum of Numbers in a String
  • Capitalize First & Last Character of Each Word
  • Character Frequency
  • Non-Repeating Characters
  • Check Anagram
  • Count Common Subsequences
  • Wildcard String Matching
  • Maximum Occurring Character
  • Remove Duplicate Characters
  • Print Duplicate Characters
  • Remove Characters Present in Another String
  • Next Lexicographic Character
  • Largest Word in a String
  • Sort Characters in a String
  • Count Words in a String
  • Word with Maximum Repeated Letters
  • Change Character Case
  • Concatenate Strings
  • Find Substring
  • Reverse Words in a String

Language Used

  • Java

Who Is This Repository For?

  • 🎓 TCS NQT Aspirants
  • 💼 TCS Digital & Prime Aspirants
  • 🏫 Campus Placement Preparation
  • 👨‍🎓 College Students
  • ☕ Java Beginners
  • 💻 Coding Interview Preparation
  • 🏆 Competitive Programming Practice

📂 Repository Structure

📦 TCS-Top-100-Coding-Questions
├── 📁 Arrays
├── 📁 Numbers
├── 📁 Number System
├── 📁 Sorting
├── 📁 Strings
└── 📄 README.md

Getting Started

# Clone the repository
git clone https://github.com/Sitaram8472/TCS_Coding_Questions
# Navigate into the project
cd TCS_Coding_Questions 

Open the project in your favorite Java IDE (IntelliJ IDEA, Eclipse, or VS Code) and start practicing.


🤝 Contributions

Contributions are welcome!

If you'd like to contribute:

  1. Fork the repository.
  2. Create a new branch.
  3. Add your solution or improve an existing one.
  4. Commit your changes.
  5. Open a Pull Request.

⭐ Support

If this repository helps you with your TCS NQT or placement preparation, consider giving it a ⭐ Star. It motivates me to keep adding more coding interview questions, optimized solutions, and detailed explanations.


📬 Connect With Me

If you found this repository helpful, feel free to connect with me on GitHub and share it with others preparing for placements.


🌟 Support & Follow

If you found this repository helpful for your TCS NQT and placement preparation, please consider:

  • Star this repository
  • 🍴 Fork this repository
  • 👀 Follow me on GitHub for more coding interview repositories, Java projects, DSA solutions, and open-source contributions.

Your support motivates me to create more high-quality learning resources for the developer community.

🔗 GitHub Profile

https://github.com/Sitaram8472

** Happy Coding! **

About

A comprehensive collection of the Top 100+ TCS Coding Questions frequently asked in TCS NQT, TCS Digital, TCS Prime, and placement interviews. This repository provides well-structured Java solutions with optimized approaches, explanations, and time & space complexity to help students prepare for coding rounds and technical interviews.

Resources

Stars

13 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages