DSA Patterns You Actually Need: FAANG vs Product Companies vs Startups vs Service Companies (2026)

Exact DSA patterns required at each company tier — what Google expects vs what a Series-A startup asks vs what TCS/Infosys tests. Stop wasting time on patterns your target company will never ask.

Stop Preparing the Same Way for Every Company

The single biggest mistake in DSA preparation: treating every company the same. An engineer preparing for Google should NOT follow the same strategy as someone targeting Flipkart, a YC startup, or Infosys.

Each company tier has different:

This guide maps EXACTLY which patterns to prioritize based on your target company tier — so you don't waste weeks studying graph algorithms for a company that only asks array problems.

Company Tier Definitions (Where Do You Fit?)

Tier 1: FAANG / Big Tech

Google, Amazon, Meta, Apple, Microsoft, Netflix, Uber, Airbnb, Stripe, Databricks, Bloomberg, LinkedIn, Twitter/X, Salesforce, Oracle (cloud division)

Characteristics: Hardest interviews, multiple rounds, 45-min coding sessions, 2 problems per round at Meta, follow-up optimizations expected, communication weighted heavily.

Tier 2: Mid-Tier Product Companies

Flipkart, Swiggy, Zomato, PhonePe, Razorpay, Atlassian, Intuit, Adobe, VMware, ServiceNow, Nutanix, Directi, Dream11, Meesho, ShareChat, Cred, Groww

Characteristics: Medium-Hard problems, 1-2 coding rounds, system design at mid-level+, good communication expected but less weighted than FAANG, practical coding valued.

Tier 3: Startups (Series A-C)

Early-to-mid stage funded startups, YC companies, small engineering teams (10-100 engineers)

Characteristics: Practical coding over algorithmic puzzles, real-world problems, take-home assignments common, culture fit weighted heavily, speed of execution valued.

Tier 4: Service-Based Companies

TCS, Infosys, Wipro, Cognizant, HCL, Accenture, Capgemini, Tech Mahindra, Mindtree, Mphasis

Characteristics: Online assessments (MCQ + coding), Easy-Medium problems, focus on fundamentals (sorting, searching, basic data structures), high volume hiring, auto-graded solutions.

The Master Pattern Chart

| Pattern | FAANG | Mid-Product | Startups | Service |

|---------|-------|-------------|----------|---------|

| Two Pointers | ★★★ | ★★★ | ★★ | ★★ |

| Sliding Window | ★★★ | ★★★ | ★★ | ★ |

| Hash Map | ★★★ | ★★★ | ★★★ | ★★★ |

| Binary Search | ★★★ | ★★★ | ★★ | ★★ |

| BFS/DFS (Trees) | ★★★ | ★★★ | ★★ | ★ |

| BFS/DFS (Graphs) | ★★★ | ★★ | ★ | ★ |

| Dynamic Programming | ★★★ | ★★ | ★ | ★ |

| Backtracking | ★★ | ★★ | ★ | — |

| Monotonic Stack | ★★ | ★★ | ★ | — |

| Topological Sort | ★★ | ★ | ★ | — |

| Union-Find | ★★ | ★ | — | — |

| Trie | ★★ | ★ | — | — |

| Heap / Priority Queue | ★★ | ★★ | ★ | ★ |

| Greedy | ★★ | ★★ | ★★ | ★★ |

| Sorting Algorithms | ★ | ★★ | ★★ | ★★★ |

| Linked List Ops | ★ | ★★ | ★ | ★★★ |

| Stack/Queue Basics | ★ | ★★ | ★★ | ★★★ |

| Recursion Basics | ★ | ★★ | ★★ | ★★★ |

| String Manipulation | ★★ | ★★ | ★★ | ★★★ |

| Bit Manipulation | ★ | ★ | — | ★★ |

How to read: ★★★ = Must master (appears 70%+) · ★★ = Important (30-60%) · ★ = Occasionally asked (10-30%) · — = Rarely/never asked

| Company Tier | Time Needed | Problems to Solve | Difficulty Split |

|---|---|---|---|

| FAANG | 4-6 months | 200-300 | 20% Easy, 60% Medium, 20% Hard |

| Mid-Product | 2-4 months | 150-200 | 30% Easy, 60% Medium, 10% Hard |

| Startups | 2-4 weeks + projects | 50-80 | 50% Easy, 45% Medium, 5% Hard |

| Service | 2-3 weeks | 60-100 | 60% Easy, 35% Medium, 5% Hard |

FAANG / Big Tech: Complete Pattern Guide

Must-Master Patterns (Appear in 80%+ of FAANG interviews)

1. Two Pointers & Sliding Window

Why FAANG loves these: They test whether you can optimize brute force from O(n²) to O(n). Classic "can you do better?" follow-up territory.

Problems to master:

FAANG twist: After solving, interviewer asks "What if the array doesn't fit in memory?" (streaming/external memory variant)

2. Binary Search (Including on Answer Space)

Why FAANG loves this: Tests precision, edge case handling, and the ability to apply binary search to non-obvious scenarios.

Problems to master:

FAANG twist: "Binary search on answer" problems where you're searching the solution space, not an array.

3. Trees — BFS and DFS

Why FAANG loves these: Recursive thinking, multiple valid approaches (iterative vs recursive), and natural follow-up questions.

Problems to master:

FAANG twist: "Now do it iteratively" or "What if it's not a binary tree?" (N-ary tree)

4. Graph Algorithms

Why FAANG loves these: Complex, hard to memorize, require real understanding. Separates candidates who understand vs. those who memorize.

Problems to master:

FAANG twist: "What if the graph is too large to fit in memory?" (distributed BFS), "What if edges have weights?" (transition to Dijkstra)

5. Dynamic Programming

Why FAANG loves this: Tests abstract thinking, subproblem decomposition, and optimization skills. The "boss level" of patterns.

Problems to master:

FAANG twist: "Can you optimize space from O(n×m) to O(n)?" (rolling array technique). "What's the actual answer, not just the count?" (backtracking through DP table)

Important Patterns (Appear in 30-50% of FAANG interviews)

6. Heap / Priority Queue

7. Monotonic Stack

8. Backtracking

9. Union-Find (Disjoint Set)

10. Trie

Mid-Tier Product Companies: Pattern Focus

Mid-tier product companies (Flipkart, Atlassian, PhonePe, Razorpay, etc.) ask FAANG-like questions but at Medium difficulty. You rarely see Hard problems. The difference:

What to Prioritize

Top Patterns (cover 85% of questions):

  1. Arrays + Hashing (frequency maps, prefix sums, two pointers)
  2. Binary Search (standard + on sorted arrays/matrices)
  3. Trees (traversals, LCA, BST operations, level-order)
  4. Linked Lists (reversal, cycle detection, merge operations)
  5. Stacks & Queues (parentheses, monotonic stack basics)
  6. Basic Graph (BFS/DFS on matrix, connected components, topological sort)
  7. 1D Dynamic Programming (climbing stairs, house robber, coin change, LIS)
  8. Sorting + Greedy (intervals, meeting rooms, job scheduling)
  9. Sliding Window (fixed and variable size)
  10. Heap (top-K problems, merge K sorted)

Problems that specifically appear at Indian product companies:

Key Difference from FAANG Prep

Startups (Series A-C): What Actually Gets Asked

Startup interviews are COMPLETELY different from FAANG. Here's the reality:

Format Differences

Patterns That Actually Matter at Startups

Tier 1 — Always useful (asked at 80%+ of startups):

  1. Hash Maps (data transformation, grouping, counting)
  2. Arrays (manipulation, filtering, transformation)
  3. String Processing (parsing, validation, formatting)
  4. Basic Sorting and Searching
  5. API Design (REST, request/response modeling)

Tier 2 — Occasionally asked (depends on domain):

  1. Trees (if the product has hierarchical data — file systems, org charts)
  2. BFS/DFS (if relevant to the domain — social networks, recommendations)
  3. Basic DP (if the startup does optimization — pricing, scheduling)
  4. Queue/Stack (for undo/redo, event processing)

Tier 3 — Rare (only at tech-heavy startups):

  1. Graph algorithms (for social/network startups)
  2. Sliding Window (for analytics/streaming startups)

What Startups Actually Test

Instead of "Solve this LeetCode Hard in 20 minutes," startups ask:

Startup Interview Prep Strategy

  1. Build things — A portfolio project demonstrates more than 500 LeetCode problems
  2. Know your stack deeply — If they use React, know React internals. If they use Go, know concurrency.
  3. Practice code reviews — Reading code is as important as writing it
  4. Basic DSA — Cover arrays, hashing, strings, basic sorting (2-3 weeks is enough)
  5. System design at practical level — Database schema, API design, caching basics

Service-Based Companies: Focused Preparation

Service companies (TCS, Infosys, Wipro, Cognizant, HCL, etc.) have high-volume hiring with standardized assessments. The interview is very different from product companies.

Format

  1. Online Assessment — 2-3 coding problems + MCQs (60-90 minutes)
  2. Technical Interview — 1 round covering fundamentals (30-45 min)
  3. HR Interview — Fitment, salary, location preference

Patterns Required (In Order of Frequency)

Must-Know (90%+ probability of appearing):

  1. Array manipulation — Reversal, rotation, sorting, searching, duplicates
  2. String operations — Palindrome check, anagram, pattern matching, reversal
  3. Sorting algorithms — Bubble sort, selection sort, merge sort, quick sort (know how they work)
  4. Searching — Linear search, binary search
  5. Basic math — Prime numbers, GCD, factorial, Fibonacci, number digit operations
  6. Pattern printing — Star patterns, number patterns, pyramid (yes, still asked in 2026)

Good to Know (50-70% probability):

  1. Linked Lists — Reversal, insertion, deletion, middle element, cycle detection
  2. Stack/Queue — Balanced parentheses, next greater element, queue using stacks
  3. Basic recursion — Factorial, Fibonacci, Tower of Hanoi, subset generation
  4. Hash Map basics — Frequency counting, first non-repeating character
  5. Basic tree operations — Traversals (inorder, preorder, postorder), height, leaf count

Occasionally Asked (20-40% probability):

  1. Greedy basics — Activity selection, fractional knapsack
  2. Basic DP — 0/1 knapsack, longest common subsequence (conceptual — rarely code from scratch)
  3. Graph basics — BFS, DFS (conceptual understanding, rarely full implementation)
  4. Bit manipulation — Count set bits, power of 2, XOR tricks

Service Company MCQ Topics (Don't Ignore These)

Preparation Timeline for Service Companies

2-3 weeks is sufficient if you know basics:

The "Ladder Strategy" — Start Low, Climb Up

If you're currently at a service company targeting FAANG eventually:

Phase 1 (Months 1-2): Prepare for and clear a mid-tier product company (Flipkart, Atlassian, etc.)

Phase 2 (Months 3-8 at new job): Work on real systems, gain distributed systems experience

Phase 3 (Months 9-14): Prepare for FAANG from a position of strength

This ladder strategy has a 2.4x higher FAANG success rate than direct service→FAANG jumps.

Pattern Practice Order by Company Tier

If targeting FAANG (90-day order):

  1. Two Pointers + Sliding Window (Week 1-2)
  2. Hash Maps + Arrays (Week 2-3)
  3. Binary Search (Week 3-4)
  4. Trees — all traversals + BST (Week 4-5)
  5. Graphs — BFS/DFS/Topological Sort (Week 5-7)
  6. Dynamic Programming — 1D then 2D (Week 7-10)
  7. Heap + Stack patterns (Week 10-11)
  8. Backtracking + Union-Find + Trie (Week 11-12)
  9. Mock interviews + weak areas (Week 12-13)

If targeting Mid-Product (60-day order):

  1. Arrays + Hash Maps (Week 1-2)
  2. Two Pointers + Sliding Window + Binary Search (Week 2-3)
  3. Trees + Basic Graphs (Week 3-5)
  4. Linked Lists + Stacks (Week 5-6)
  5. 1D DP + Greedy (Week 6-7)
  6. Heap + Sorting (Week 7-8)
  7. Mock interviews (Week 8-9)

If targeting Startups (21-day order):

  1. Arrays + Strings + Hash Maps (Day 1-5)
  2. Sorting + Binary Search (Day 6-8)
  3. Basic Trees + Linked Lists (Day 9-12)
  4. Stack/Queue + Recursion (Day 13-15)
  5. Build a project + practice code reviews (Day 16-21)

If targeting Service Companies (14-day order):

  1. Arrays + Strings + Math + Patterns (Day 1-4)
  2. Sorting + Searching + Recursion (Day 5-7)
  3. Linked Lists + Stacks + Queues (Day 8-10)
  4. MCQs (OOP, SQL, OS, Networking) (Day 11-12)
  5. Mock assessments (Day 13-14)

Key Insight: Don't Over-Prepare for Your Target

The most common waste of time in DSA preparation:

Match your preparation to your target. Focused preparation beats broad preparation every time.

Frequently Asked Questions

What DSA topics should I study for FAANG interviews?

For FAANG, you need deep mastery of: Two Pointers, Sliding Window, Binary Search (including on answer space), Trees (BFS/DFS), Graphs (traversal, topological sort, shortest path), Dynamic Programming (1D and 2D), Heap/Priority Queue, Monotonic Stack, Backtracking, Union-Find, and Trie. Focus 60% on Medium problems and 20% on Hard. You need 200-300 well-understood problems over 4-6 months.

Is Dynamic Programming required for product-based company interviews?

For mid-tier product companies (Flipkart, Atlassian, Razorpay), 1D DP is sufficient — problems like climbing stairs, house robber, coin change, and longest increasing subsequence. 2D DP (edit distance, LCS) is rarely asked. For FAANG, both 1D and 2D DP are required. For startups and service companies, DP is almost never asked in interviews.

How many LeetCode problems are enough for startup interviews?

For startup interviews, 50-80 problems focused on arrays, strings, hashing, and basic sorting/searching is sufficient. Startups prioritize practical coding skills (building features, debugging, code reviews) over algorithmic puzzles. Spending 2-3 weeks on DSA basics and then focusing on a strong portfolio project is the optimal strategy for startups.

What coding topics are asked in TCS, Infosys, and Wipro interviews?

Service companies focus on: array manipulation, string operations, sorting algorithms (know how bubble/merge/quick sort work), basic math (prime numbers, GCD, Fibonacci), pattern printing, linked list operations, and stack/queue basics. Also prepare MCQs on OOP concepts, SQL queries, OS basics, and networking fundamentals. 60-100 Easy-Medium problems over 2-3 weeks is sufficient.

Can I directly go from a service company to FAANG?

Yes, but the "ladder strategy" has 2.4x higher success rate: first move to a mid-tier product company (2-4 months preparation), gain 1-2 years of product experience, then target FAANG (4-6 months additional preparation). Direct jumps are harder because: (1) FAANG callback rate is lower without product company experience, (2) system design knowledge is harder to build without exposure to real distributed systems.

Which DSA patterns have the highest ROI across all company tiers?

The patterns with highest return-on-investment across ALL company types are: Hash Maps (asked everywhere from service to FAANG), Arrays/Two Pointers (universal), Binary Search (universal for sorted data), and basic Tree traversals. If you only have 2 weeks, master these four. They cover 50-60% of interview questions at every company tier.