Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

42 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ LeetCode Top Interview 150 Solutions

LeetCode C++ Python

Daily solutions to LeetCode's Top Interview 150 problems in C++ and Python

πŸ“– About

This repository contains my solutions to the LeetCode Top Interview 150 problems. The Top Interview 150 is a curated list of essential coding problems that cover the most common topics asked in technical interviews at top tech companies.

Goal: Solve all 150 problems and build a comprehensive reference for interview preparation.

🎯 Progress

  • Total Problems: 150
  • Solved: 44
  • In Progress: 106
  • Last Updated: February 27, 2026

πŸ—‚οΈ Repository Structure

.
β”œβ”€β”€ README.md
β”œβ”€β”€ problem_name.cpp       # C++ solution
└── problem_name.py        # Python solution

Each problem includes clean code in both C++ and Python

πŸ“š Problem Categories

The Top Interview 150 covers these key topics:

  • Array / String
  • Two Pointers
  • Sliding Window
  • Matrix
  • Hashmap
  • Intervals
  • Stack
  • Linked List
  • Binary Tree General
  • Binary Tree BFS
  • Binary Search Tree
  • Graph General
  • Graph BFS
  • Trie
  • Backtracking
  • Divide & Conquer
  • Kadane's Algorithm
  • Binary Search
  • Heap
  • Bit Manipulation
  • Math
  • 1D DP
  • Multidimensional DP

βœ… Solved Problems

# Problem Difficulty C++ Python Topics
1 Two Sum Easy βœ“ βœ“ Array, Hash Table
3 Longest Substring Without Repeating Characters Medium βœ“ βœ“ Hash Table, String, Sliding Window
6 Zigzag Conversion Medium βœ“ βœ“ String
11 Container With Most Water Medium βœ“ βœ“ Array, Two Pointers, Greedy
12 Integer to Roman Medium βœ“ βœ“ Hash Table, Math, String
13 Roman to Integer Easy βœ“ βœ“ Hash Table, Math, String
14 Longest Common Prefix Easy βœ“ βœ“ String
15 3Sum Medium βœ“ βœ“ Array, Two Pointers, Sorting
26 Remove Duplicates from Sorted Array Easy βœ“ βœ“ Array, Two Pointers
27 Remove Element Easy βœ“ βœ“ Array, Two Pointers
28 Find the Index of the First Occurrence in a String Easy βœ“ βœ“ Two Pointers, String, String Matching
30 Substring with Concatenation of All Words Hard βœ“ βœ“ Hash Table, String, Sliding Window
36 Valid Sudoku Medium βœ“ βœ“ Array, Hash Table, Matrix
42 Trapping Rain Water Hard βœ“ βœ“ Array, Two Pointers, Dynamic Programming, Stack
45 Jump Game II Medium βœ“ βœ“ Array, Greedy, Dynamic Programming
48 Rotate Image Medium βœ“ βœ“ Array, Math, Matrix
49 Group Anagrams Medium βœ“ βœ“ Array, Hash Table, String, Sorting
54 Spiral Matrix Medium βœ“ βœ“ Array, Matrix, Simulation
55 Jump Game Medium βœ“ βœ“ Array, Greedy, Dynamic Programming
58 Length of Last Word Easy βœ“ βœ“ String
68 Text Justification Hard βœ“ βœ“ Array, String, Simulation
73 Set Matrix Zeroes Medium βœ“ βœ“ Array, Hash Table, Matrix
76 Minimum Window Substring Hard βœ“ βœ“ Hash Table, String, Sliding Window
80 Remove Duplicates from Sorted Array II Medium βœ“ βœ“ Array, Two Pointers
88 Merge Sorted Array Easy βœ“ βœ“ Array, Two Pointers
121 Best Time to Buy and Sell Stock Easy βœ“ βœ“ Array, Dynamic Programming
122 Best Time to Buy and Sell Stock II Medium βœ“ βœ“ Array, Greedy, Dynamic Programming
125 Valid Palindrome Easy βœ“ βœ“ Two Pointers, String
134 Gas Station Medium βœ“ βœ“ Array, Greedy
135 Candy Hard βœ“ βœ“ Array, Greedy
151 Reverse Words in a String Medium βœ“ βœ“ Two Pointers, String
167 Two Sum II - Input Array Is Sorted Medium βœ“ βœ“ Array, Two Pointers, Binary Search
169 Majority Element Easy βœ“ βœ“ Array, Hash Table, Divide and Conquer
189 Rotate Array Medium βœ“ βœ“ Array, Math, Two Pointers
205 Isomorphic Strings Easy βœ“ βœ“ Hash Table, String
209 Minimum Size Subarray Sum Medium βœ“ βœ“ Array, Binary Search, Sliding Window, Prefix Sum
238 Product of Array Except Self Medium βœ“ βœ“ Array, Prefix Sum
242 Valid Anagram Easy βœ“ βœ“ Hash Table, String, Sorting
274 H-Index Medium βœ“ βœ“ Array, Sorting, Counting Sort
289 Game of Life Medium βœ“ βœ“ Array, Matrix, Simulation
290 Word Pattern Easy βœ“ βœ“ Hash Table, String
380 Insert Delete GetRandom O(1) Medium βœ“ βœ“ Array, Hash Table, Design
383 Ransom Note Easy βœ“ βœ“ Hash Table, String, Counting
392 Is Subsequence Easy βœ“ βœ“ Two Pointers, String, Dynamic Programming

πŸ› οΈ Languages & Tools

  • C++: Modern C++ (C++17/20) with STL
  • Python: Python 3.x with clear, pythonic solutions

πŸ“« Connect

If you find this repository helpful, consider giving it a ⭐!

πŸ“„ License

This project is open source and available under the MIT License.


Happy Coding! πŸ’»βœ¨

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages