Skip to content

HungDongne/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🧩 LeetCode Solutions

LeetCode Profile Solutions Languages

This repository contains my solutions to LeetCode problems, implemented in Python and C++. Each solution is optimized for readability and efficiency.

📊 Statistics

  • Total Solutions: 179
  • Python Solutions: 90
  • C++ Solutions: 89
  • LeetCode Profile: HungDongne

🗂️ Repository Structure

LeetCode/
├── *.py           # Python solutions
├── *.cpp          # C++ solutions
├── SpeedCpp.cpp   # C++ template for fast I/O
└── README.md      # This file

💻 Languages Used

Python 🐍

  • Clean, readable solutions
  • Leverages Python's built-in data structures
  • Focus on algorithmic clarity

C++ ⚡

  • Optimized for performance
  • Fast I/O templates included
  • Memory-efficient implementations

📝 Problem Categories

The solutions cover various algorithmic topics including:

  • Array & String Manipulation
  • Two Pointers & Sliding Window
  • Hash Tables & Hash Maps
  • Binary Search
  • Dynamic Programming
  • Graph Algorithms (DFS, BFS)
  • Tree Traversals
  • Backtracking
  • Greedy Algorithms
  • Sorting & Searching

🚀 How to Use

  1. Clone the repository:

    git clone https://github.com/HungDongne/LeetCode.git
    cd LeetCode
  2. Run Python solutions:

    python [problem_number].py
  3. Compile and run C++ solutions:

    g++ -o solution [problem_number].cpp
    ./solution

📋 File Naming Convention

Files are named using the LeetCode problem number:

  • 1.py - Problem #1 solution in Python
  • 1.cpp - Problem #1 solution in C++
  • 1007.py - Problem #1007 solution in Python

🤝 Contributing

Feel free to:

  • Suggest optimizations for existing solutions
  • Report any bugs or issues
  • Discuss alternative approaches

📬 Contact


Happy Coding! 🚀

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published