Skip to content

My Solutions to Easy, Medium and Hard Leetcode Problems

Peter-Refaat/Leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“˜ LeetCode Solutions

This repository contains my personal solutions to LeetCode problems, written in C++, Python, and SQL. The problems are organized by difficulty and span a wide range of algorithmic topics.


πŸ“‚ Folder Structure

Leetcode/

β”œβ”€β”€ Easy/ # Easy difficulty problems

β”œβ”€β”€ Medium/ # Medium difficulty problems

β”œβ”€β”€ Hard/ # Hard difficulty problems

β”œβ”€β”€ SQL/ # SQL query problems


πŸ“„ File Naming Convention

Each file follows the format:

problem_number. problem_name. extension

Examples:

  • 1. Two Sum.cpp
  • 704. Binary Search.cpp
  • 175. Combine Two Tables.sql

🧠 Topics Covered

Problems are tagged by topic (as retrieved from LeetCode). Here's a breakdown:

βœ… Fundamental

  • Array Γ—108
  • String Γ—43
  • Sorting Γ—25
  • Two Pointers Γ—20
  • Simulation Γ—11
  • Stack Γ—9
  • Enumeration Γ—6
  • Matrix Γ—5

🟑 Intermediate

  • Math Γ—54
  • Hash Table Γ—31
  • Binary Search Γ—22
  • Bit Manipulation Γ—19
  • Depth-First Search (DFS) Γ—13
  • Breadth-First Search (BFS) Γ—11
  • Tree Γ—10
  • Binary Tree Γ—10

πŸ”΄ Advanced

  • Dynamic Programming (DP) Γ—31
  • Backtracking Γ—7
  • Divide and Conquer Γ—7
  • Union Find Γ—3
  • Topological Sort Γ—3
  • Trie Γ—2
  • Shortest Path Γ—2
  • Game Theory Γ—1