Skip to content

mhdnazrul/LeetCode-Solutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

100 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 LeetCode Solutions

Website

Languages Total Stars LeetCode

🔗 Find me on: GitHub | LeetCode | LinkedIn


📊 Progress Statistics

Total Problems Solved: 29

Difficulty Count Progress
🟢 Easy 15 ███████████████
🟡 Medium 13 █████████████
🔴 Hard 1 █░░░░░░░░░
📈 Language Breakdown
Language Count
C++ 29

📋 Solution Index

# Problem Name Difficulty Language Problem Solution
1 Two Sum 🟢 Easy C++ 🔗 Problem 💻 Solution
2 Add Two Numbers 🟡 Medium C++ 🔗 Problem 💻 Solution
3 Longest Substring Without Repeating Characters 🟡 Medium C++ 🔗 Problem 💻 Solution
4 Median Of Two Sorted Arrays 🔴 Hard C++ 🔗 Problem 💻 Solution
6 Zigzag Conversion 🟡 Medium C++ 🔗 Problem 💻 Solution
7 Reverse Integer 🟡 Medium C++ 🔗 Problem 💻 Solution
9 Palindrome Number 🟢 Easy C++ 🔗 Problem 💻 Solution
12 Integer To Roman 🟡 Medium C++ 🔗 Problem 💻 Solution
13 Roman To Integer 🟢 Easy C++ 🔗 Problem 💻 Solution
14 Longest Common Prefix 🟢 Easy C++ 🔗 Problem 💻 Solution
20 Valid Parentheses 🟢 Easy C++ 🔗 Problem 💻 Solution
21 Merge Two Sorted Lists 🟢 Easy C++ 🔗 Problem 💻 Solution
26 Remove Duplicates From Sorted Array 🟢 Easy C++ 🔗 Problem 💻 Solution
27 Remove Element 🟢 Easy C++ 🔗 Problem 💻 Solution
34 Find First And Last Position Of Element In Sorted Array 🟡 Medium C++ 🔗 Problem 💻 Solution
792 Binary Search 🟢 Easy C++ 🔗 Problem 💻 Solution
948 Sort An Array 🟡 Medium C++ 🔗 Problem 💻 Solution
1071 Binary Prefix Divisible By 5 🟢 Easy C++ 🔗 Problem 💻 Solution
3476 Find Minimum Operations To Make All Elements Divisible By Three 🟢 Easy C++ 🔗 Problem 💻 Solution
3496 Minimum Number Of Seconds To Make Mountain Height Zero 🟡 Medium C++ 🔗 Problem 💻 Solution
4062 House Robber V 🟡 Medium C++ 🔗 Problem 💻 Solution
4087 Maximum Substrings With Distinct Start 🟡 Medium C++ 🔗 Problem 💻 Solution
4126 Minimum Number Of Flips To Reverse Binary String 🟢 Easy C++ 🔗 Problem 💻 Solution
4137 Number Of Prefix Connected Groups 🟡 Medium C++ 🔗 Problem 💻 Solution
4141 Count Elements With At Least K Greater Values 🟡 Medium C++ 🔗 Problem 💻 Solution
4150 Sort Integers By Binary Reflection 🟢 Easy C++ 🔗 Problem 💻 Solution
4179 Largest Even Number 🟢 Easy C++ 🔗 Problem 💻 Solution
4190 Minimum Operations To Reach Target Array 🟡 Medium C++ 🔗 Problem 💻 Solution
4216 Weighted Word Mapping 🟢 Easy C++ 🔗 Problem 💻 Solution

🔄 How It Works

  1. Solve & Submit on LeetCode → Accepted ✅
  2. LeetSync Chrome extension automatically pushes the solution to this repo
  3. GitHub Actions runs Web/generate.py on every push to main
  4. The script:
    • Scans Solutions/ directory (LeetSync format: {id}-{slug}/)
    • Extracts difficulty from each problem's README.md shield badge
    • Writes Web/solutions.json for the website
    • Rewrites this README.md with updated stats + table
  5. The Web/ folder is deployed to GitHub Pages automatically

📂 Repository Structure

LeetCode-Solutions/
├── .github/workflows/
│   └── automation.yml          ← GitHub Actions workflow
├── Solutions/                  ← Auto-created by LeetSync
│   ├── 1-two-sum/
│   │   ├── two-sum.cpp
│   │   └── README.md           ← Contains difficulty badge
│   └── ...
├── Web/
│   ├── generate.py             ← 🤖 Automation script
│   ├── index.html              ← Website SPA
│   ├── style.css
│   ├── script.js
│   └── solutions.json          ← Auto-generated data
├── README.md                   ← Auto-updated by automation
└── .gitignore

📄 License

This project is licensed under the MIT License.


⭐ Star this repo if it helps your journey! Happy Coding! 💻
Auto-generated by Web/generate.py

About

🚀 Auto-synced LeetCode solutions (C++) via LeetSync · GitHub Actions auto-updates README stats & deploys a searchable website to GitHub Pages · Problem-by-problem archive

Topics

Resources

Stars

Watchers

Forks

Contributors