Freshers:
Top 20 Repeated Coding Questions Do You Open LeetCode and Feel Like Crying?
I need to tell you something honestly.
Last week, a student called me at 11 PM. He was crying.
“Bhaiya, TCS coding round hai kal. Maine 3 months se LeetCode kiya. But abhi bhi ek bhi question nahi ban raha.”
I asked him: “How many questions did you solve?”
He said: “Around 200.”
That’s the problem right there.
You don’t need 200 questions. You don’t need 500 questions.
You need the SAME 20 questions that TCS repeats again and again.
And today, I’m going to give you exactly that list.
The same list that helped 300+ students in my coaching crack TCS in last 6 months.
So stop crying. Start reading.
The Reality Check: Why “Just Practice More” is BAD Advice
Your senior told you: “Bhai, bas practice karte reh.”
Your YouTube guru said: “Solve 500 questions minimum.”
Your college professor said: “Master Data Structures first.”
They’re all WRONG for TCS level.
Here’s what actually happens:
❌ The Old Way (Doesn’t Work):
- You solve Question #1 on Monday → Forget it by Wednesday
- You jump between Easy/Medium/Hard randomly
- You watch coding videos but never write code yourself
- You panic when you see a “new” question in exam
- You think: “Itne saare questions kaise yaad rakhu?”
✅ The Smart Way (Works Every Time):
- Solve ONLY 20 questions → But solve them 15 times each
- Your fingers should remember the code automatically
- Practice until coding becomes like writing your name
- When exam comes, questions feel familiar
- You think: “Yeh toh maine kiya hua hai!”
The Truth Nobody Tells You:
TCS doesn’t want coding experts. They want people who can solve BASIC problems WITHOUT MISTAKES.
Perfect > Fast
Simple > Complex
20 Questions Mastered > 200 Questions Attempted
The Solution: Your Step-by-Step 20-Day TCS Cracking Formula
Step 1: Understand the TCS Pattern First (Day 1-2)
Before you write even one line of code, understand this:
What TCS NQT Actually Tests:
- Can you write clean code?
- Can you handle basic arrays and strings?
- Can you solve simple math problems?
- Can you think logically?
What TCS NQT Does NOT Test:
- Advanced Data Structures (Trees, Graphs, etc.)
- Dynamic Programming
- Competitive Programming tricks
- Google-level algorithms
Your Action Plan for Day 1-2:
✅ Choose ONE language (Python recommended for beginners)
✅ Install compiler on your laptop (VS Code or PyCharm)
✅ Practice printing “Hello World” and taking inputs
✅ Understand: Variables, Loops (for/while), If-else, Arrays
That’s it. Don’t overthink.
Step 2: Master THE 20 Questions (Day 3-15)
Listen carefully. I tracked 47 TCS drives in 2024.
These 20 questions appeared in 64% of all drives.
Some with different numbers. Some with small twists. But SAME LOGIC.
★ BEGINNER Level – Must Know (8 Questions)
These are super easy. If you can’t do these, start here:
- Print Fibonacci Series (0, 1, 1, 2, 3, 5…)
- Check if Number is Prime or Not
- Find Factorial of a Number (5! = 120)
- Reverse a String (“hello” → “olleh”)
- Check Palindrome (121, “madam”)
- Count Vowels and Consonants in String
- Find Sum of Digits (123 → 1+2+3 = 6)
- Swap Two Numbers Without Third Variable
Practice Time: 1 hour per question, write code 3 times
★★ INTERMEDIATE Level – Important (8 Questions)
This is where most students get stuck. Take your time:
- Find Second Largest Number in Array
- Remove Duplicate Elements from Array
- Check if String is Anagram (“listen” = “silent”)
- Find GCD (Greatest Common Divisor) of Two Numbers
- Print Star Pattern (Pyramid/Diamond)
- Check Armstrong Number (153 = 1³+5³+3³)
- Rotate Array Left or Right by K positions
- Find Missing Number in Array (1 to N series)
Practice Time: 1.5 hours per question, solve 5 times
★★★ ADVANCED Level – Score Booster (4 Questions)
If you master these, you’ll score 90%+ easily:
- Count Frequency of Each Element in Array
- Find Pair with Given Sum in Array (Two Sum Problem)
- Sort Array Without Using Built-in Sort Function
- Find All Prime Numbers from 1 to N (Sieve Method)
Practice Time: 2 hours per question, master completely
Step 3: The 3-Round Practice System (Day 16-18)
Here’s my SECRET method that works like magic:
Round 1: SLOW & CLEAR (First Time)
- Read question 3 times
- Write logic in Hindi/English on paper first
- Then convert to code
- Run 5 different test cases
- Note down where you made mistakes
Round 2: MEDIUM SPEED (Next Day)
- Solve the same question again
- Don’t look at previous code
- Time yourself: 20 minutes maximum
- If you get stuck, check your notes ONLY
Round 3: EXAM MODE (Third Day)
- Set timer: 15 minutes
- Solve without any help
- Your code should run perfectly in first attempt
- If not, repeat this round tomorrow
Do this for all 20 questions.
By end of Day 18, you should be able to solve any of these 20 questions in your sleep.
Step 4: Handle Variations and Tricky Inputs (Day 19-20)
TCS loves to give “twists” to familiar questions.
Examples of Twists:
- Question says: Find 2nd largest → Twist: What if all numbers are same?
- Question says: Reverse string → Twist: What if string is empty?
- Question says: Check prime → Twist: What if number is negative?https://www.geeksforgeeks.org/dsa/must-do-coding-questions-for-companies-like-amazon-microsoft-adobe/https://www.geeksforgeeks.org/dsa/must-do-coding-questions-for-companies-like-amazon-microsoft-adobe/
Your Job: Think of 3 edge cases for each question and handle them.
| Question Type | Common Edge Cases |
|---|---|
| Arrays | Empty array, single element, all same numbers |
| Strings | Empty string, single character, special symbols |
| Numbers | Zero, negative numbers, very large numbers |
| Loops | N=0, N=1, N=very large |
Write code that handles ALL cases. This is what separates 60% score from 95% score.
Pro Tip: The “2-Page Cheat Sheet” Secret
Now I’ll tell you something that helped me the MOST.
3 days before my TCS exam, I did something smart.
I created a 2-page document with:
✅ All 20 questions with SHORT code (not full explanation)
✅ Only the MAIN LOGIC written (not entire program)
✅ TIME COMPLEXITY beside each question (O(n), O(n²), etc.)
✅ COMMON MISTAKES I made while practicing
✅ TRICKY TEST CASES that can break my code
Then I did something even smarter:
I read this 2-page sheet 10 times in those 3 days.
- Morning: Once while having chai
- Night: Once before sleeping
- One day before exam: 3 times
By exam day, my brain had PHOTOGRAPHED that sheet.
When I saw Question 1 in exam, my fingers typed automatically. No thinking. Just typing.
This is the REAL secret.
You don’t need to remember 500 things. You need to MEMORIZE 20 patterns so deeply that they become AUTOMATIC.
[SPECIAL OFFER: I’ve created the exact same 2-page cheat sheet with all 20 questions, clean code, test cases, and common mistakes. It’s the same sheet my students use. I’ll add a download link here soon – save this page!]
This is not just a cheat sheet. This is your confidence builder.
Your 20-Day Schedule: Copy-Paste This in Your Phone
| Days | Morning Session (2 hrs) | Evening Session (1.5 hrs) | Goal | |—|—|—| | Day 1-2 | Choose language + setup environment | Practice basics: loops, arrays, input/output | Comfort with coding | | Day 3-5 | Questions 1-4 (Beginner level) | Revise Q1-4, solve again from memory | Master first 4 | | Day 6-8 | Questions 5-8 (Beginner level) | Revise all 8 beginner questions | Confidence boost | | Day 9-11 | Questions 9-12 (Intermediate) | Mix beginner + intermediate practice | Build stamina | | Day 12-14 | Questions 13-16 (Intermediate) | Speed practice: 15 min per question | Increase speed | | Day 15-17 | Questions 17-20 (Advanced) | Revise ANY 5 random questions daily | Master all 20 | | Day 18 | FULL MOCK TEST – All 20 in 5 hours | Review mistakes, weak questions | Identify gaps | | Day 19 | Solve weak questions 5 times | Edge cases + tricky inputs practice | Remove weak spots | | Day 20 | Light revision only – Read cheat sheet 3x | REST – No new questions | Mental freshness |
Total Investment: 70 hours = Your TCS Offer Letter
Before vs After: See the Transformation
| Before My Method | After My Method |
|---|---|
| Attempted 500+ random questions | Focused on only 20 questions |
| Confused about what’s important | Crystal clear priority list |
| Watched videos, never practiced | Wrote code 15 times per question |
| Panicked seeing “new” questions | Felt confident – “I know this pattern!” |
| Scored 40-50% in coding | Scored 85-95% consistently |
| Thought: “Coding mere bas ki nahi” | Thought: “This is easier than I thought!” |
Real Talk: What I Wish Someone Told Me in College
I’m going to be 100% honest with you.
When I was in your place 8 years ago, I was TERRIBLE at coding.
I mean really bad.
I failed my C programming course. Twice.
I used to think coding was for “smart people”. Not for average students like me.
But then I learned this ONE THING:
Coding is not intelligence. Coding is pattern recognition + muscle memory.
It’s like learning to ride a bike. First time? You fall. Second time? You wobble. Third time? You balance a bit.
But after 20 times? You don’t even think. Your body just knows.
Same with coding.
First time writing a Fibonacci loop? Confusing.
Tenth time? Easy.
Twentieth time? Your fingers know what to type before your brain does.
That’s the goal.
Not to become a coding genius. But to make these 20 patterns SO AUTOMATIC that you solve them without stress.
read more:How to Increase Your Mock Test Speed: Attempt 100 Questions in 60 Minutes
Your Final Push: Next 20 Days Will Decide Everything
Look at your calendar right now.
Mark today’s date.
Mark the date 20 days from now.
Between these two dates, your entire TCS story will be written.
You can either:
Option A: Keep doing what you’re doing now (random practice, no plan, lots of stress)
OR
Option B: Follow this 20-day plan EXACTLY as written (focused practice, clear plan, calm mind)
Both will take the same 20 days.
But only Option B will get you the TCS offer letter.
Here’s what you do RIGHT NOW:
- Screenshot this article
- Share it with 2 friends (they’ll thank you later)
- Open your compiler
- Start with Question #1 TODAY
- Don’t stop until all 20 are mastered
Remember this:
TCS is not testing your IQ. They’re testing your dedication.
Can you stick to a plan for 20 days? That’s it. That’s the test.
I’ve given you the roadmap. Now you have to walk the path.
Your family is proud of you. I’m proud of you. Now make yourself proud.
See you on the other side with your TCS offer letter! 🚀
Q1: Bhaiya, 20 days mein ho jayega? I’m very weak in coding.
My Answer: YES! 100% ho jayega! Listen, coding is not rocket science. It’s practice. I’ve seen students who didn’t know what a “variable” was crack TCS in 25 days. The difference? They followed the plan STRICTLY. No skipping. No “kal karunga”. Daily 3.5 hours for 20 days = Done. If I could do it (I failed C programming twice!), you definitely can. Trust yourself.
Q2: Python sahi rahega ya Java? College mein C++ padhai thi.
My Simple Answer:
Python – Best for beginners (easy syntax, less typing)
Java – Good if you know basics (most companies use it)
C++ – If you’re already comfortable with it
TCS accepts all three languages. Choose ONE and don’t change. Don’t waste time learning multiple. Master one weapon completely rather than knowing three weapons halfway. I personally recommend Python for freshers – you’ll spend less time fixing syntax errors and more time understanding logic.
Q3: Kya sirf yeh 20 questions hi aate hain? Kuch alag bhi aa sakta hai?
Honest Answer: 70% chance these exact patterns will come. 20% chance you’ll see small variations (like “find 3rd largest instead of 2nd largest”). 10% chance something totally new. BUT – if you’ve mastered these 20, you’ll have the CONFIDENCE and LOGIC to handle new questions too. Plus, 70% confirmed score is enough to clear TCS coding round easily! Focus on guarantee first, then extra credit. Don’t leave confirmed marks to chase uncertain ones