leetcode-solutions

Top Badget

LeetCode Toolkit:
Solutions, Algorithms & Automated Downloader

Overview

πŸ‘‹ Welcome to my LeetCode Toolkit! This repository is a curated collection of my experiences and learnings in the realm of algorithmic challenges. Dive into a variety of solutions and tools, Here are some key highlights:

πŸ“ˆ Graph Algorithms in C++ πŸ” C Programming Examples 🐍 Python Solutions Downloader Script
Explore graph theory with implementations of algorithms like BFS, DFS, Dijkstra’s, Bellman-Ford, and Floyd-Warshall.

Includes a tree visualizer for custom input and visualization.
Features a Magic Square Checker and a Hash-Table implementation.

πŸŽ“ For more examples of C coding techniques, take a look at these mini-repositories: πŸ“œCbits, and πŸ‘ΎTextAnalysisC.
Enhance your LeetCode experience with a Python script for downloading accepted solutions.

Check out the LeetCode Downloader for efficient solution archiving.

πŸ“š While I’ve been actively engaged on LeetCode, I’ve stopped uploading new solutions to this repository. For the most current view of my work, techniques, and progress, please visit my LeetCode profile: Dor-sketch.


NEW: LeetCode Solutions Downloader πŸ“₯

Features

How to Use

  1. Install Selenium WebDriver and Python 3.x.
  2. Clone the repository to your local machine.
  3. Configure the script with your LeetCode credentials.
  4. Execute the script to commence the automatic download of solutions.

How it Works

Leveraging Selenium WebDriver, the script automates both the login process and the navigation on the LeetCode website. It meticulously parses submission history, and identifies accepted solutions, which are then downloaded and saved locally. The script also updates a comprehensive list of problems and solutions for quick reference.

Alt text The submission history is parsed from the LeetCode website, and accepted solutions are downloaded and saved locally.

Contribution to this Tool

Suggestions and contributions to enhance this downloader are welcome! Please feel free to fork the repository, make improvements, and submit a pull request.


Graph Algorithms: An Overview πŸŒπŸ”

Graph algorithms are a cornerstone of computer science, which I’ve delved into and implemented in this repository. These algorithms play a pivotal role in tackling complex problems across various network structures like social networks 🌍, computer networks πŸ’», and biological networks 🧬. Below is a succinct overview of some key graph algorithms and their real-world applications, demonstrated in Graph.cpp:

These algorithms are implemented in my repository, showcasing my grasp of graph theory and its practical applications in solving real-world problems.

How to Use - GraphApp

  1. Clone the repository to your local machine.
  2. Navigate to the C++_GraphAlgorithms directory.
  3. Use the make command to compile the program.
  4. Execute the program to run the algorithms with ./GraphApp.

NEW - Explore Algorithms with Costum Inputs!


Problems 🧩

You can find a comprehensive list of problems and solutions in problems.md.

More Inside the Repository πŸ“‚

New solutions are added regularly via the LeetCode Downloader. Old solutions are available in the Hard, Medium, and Easy directories like so:

.
β”œβ”€β”€ Easy/
β”‚   β”œβ”€β”€ Arrays/
β”‚   β”œβ”€β”€ Strings/
β”‚   └── ...
β”œβ”€β”€ Medium/
β”‚   β”œβ”€β”€ LinkedList/
β”‚   β”œβ”€β”€ Trees/
β”‚   └── ...
└── Hard/
    β”œβ”€β”€ Graphs/
    β”œβ”€β”€ Dynamic Programming/
    └── ...

Contributing πŸ’‘

Although this is a personal repository primarily for self-learning, feedback or improvement suggestions are welcome. Please open an issue or submit a pull request.

License βš–οΈ

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