RSS Amplifier

Harpreet's Newsletter · Aug 10, 2026

14 LeetCode Patterns To Crack Google

0
Sign in to vote or save

Harpreet Singh · Harpreet's Newsletter

Here are 14 LeetCode Patterns I will study to crack my Google interview.

And no, I won’t “grind 500 problems.”

I will focus on the right patterns and the right problems.

These are the patterns and problems I will practice right before my Google interview:

1/ Arrays & Hashing

  1. Contains Duplicate

  2. Valid Anagram

  3. Two Sum

  4. Group Anagrams

  5. Longest Consecutive Sequence

  6. Valid Sudoku

2/ Two Pointers

  1. Valid Palindrome

  2. Remove Duplicates from Sorted Array

  3. Merge Sorted Array

  4. Container With Most Water

  5. Two Sum II - Input Array Is Sorted

  6. 3Sum

3/ Stack

  1. Valid Parentheses

  2. Next Greater Element I

  3. Remove Outermost Parentheses

  4. Min Stack

  5. Minimum Add to Make Parentheses Valid

  6. Basic Calculator II

4/ Binary Search

  1. Binary Search

  2. Search Insert Position

  3. Kth Missing Positive Number

  4. Find Peak Element

  5. Search in Rotated Sorted Array

  6. Search a 2D Matrix

5/ Sliding Window

  1. Maximum Average Subarray I

  2. Find the K-Beauty of a Number

  3. Contains Duplicate II

  4. Longest Substring Without Repeating Characters

  5. Subarray Product Less Than K

  6. Longest Repeating Character Replacement

6/ Linked List

  1. Merge Two Sorted Lists

  2. Reverse Linked List

  3. Middle of the Linked List

  4. Add Two Numbers

  5. LRU Cache

  6. Reorder List

7/ Trees

  1. Same Tree

  2. Maximum Depth of Binary Tree

  3. Diameter of Binary Tree

  4. Binary Tree Level Order Traversal

  5. Validate Binary Search Tree

  6. Lowest Common Ancestor of a Binary Tree

8/ Trie

  1. Longest Common Prefix

  2. Count Prefix and Suffix Pairs I

  3. Implement Trie (Prefix Tree)

  4. Design Add And Search Words Data Structure

  5. Find the Length of the Longest Common Prefix

9/ Backtracking

  1. Binary Tree Paths

  2. Binary Watch

  3. Sum of All Subset XOR Totals

  4. Subsets

  5. Permutations

  6. Combination Sum

10/ Heap (Priority Queue)

  1. Last Stone Weight

  2. Kth Largest Element in a Stream

  3. Relative Ranks

  4. K Closest Points to Origin

  5. Kth Largest Element in an Array

  6. Task Scheduler

11/ Graphs

  1. Find Center of Star Graph

  2. Find the Town Judge

  3. Find if Path Exists in Graph

  4. Number of Islands

  5. Clone Graph

  6. Rotting Oranges

12/ Intervals

  1. Insert Interval

  2. Merge Intervals

  3. Non Overlapping Intervals

13/ Greedy & Dynamic Programming

  1. Jump Game

  2. Jump Game II

  3. Gas Station

14/ Advanced Graphs

  1. Cheapest Flights Within K Stops

  2. Network Delay Time

  3. Min Cost to Connect All Points

If you’re preparing for FAANG in 2026, don’t forget to save this post.

Also, here’s a platform which you can use to practice for your interviews:

🔗 Interview Roadmap Platform: Link

Best of luck!

Read the original on singhz.substack.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.