Skip to content

HealMaDe/Python-Solutions-to-75-Essential-leetcode-Problems

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Python Solutions to 75 Essential leetcode Problems

This repository contains my solutions to 75 essential LeetCode problems. LeetCode is a popular online platform that provides a collection of coding challenges to help programmers improve their algorithmic skills. The problems cover various topics and difficulty levels, making it a valuable resource for practicing coding and problem-solving techniques. These solutions are implemented in Python and are organized by problem category for easy reference. Each problem solution includes a detailed explanation and the corresponding code.

Overview

  • Total Problems Solved: 75
  • Languages Used: python

Problem Categories

The problems in this repository are categorized into the following categories:

  1. Array/String
  2. Two Pointers
  3. Sliding Window
  4. Prefix Sum
  5. Hash Map, Set
  6. Stack
  7. Queue
  8. Linked List
  9. Binary Tree, DFS
  10. Binary Tree, BFS
  11. Binary Search Tree
  12. Graphs, DFS
  13. Graphs, BFS
  14. Heap or Priority Queue
  15. Binary Search
  16. Backtracking
  17. DP - 1D
  18. DP - Miltidimentional
  19. Bit Manipulation
  20. Trie
  21. Intervals
  22. Monotonic Stack

Solutions

Each problem solution includes a detailed explanation and the corresponding Python code. The solutions are implemented using efficient algorithms and follow best coding practices. The explanations provide a step-by-step breakdown of the thought process and reasoning behind the solution approach.

Concepts and Algorithms

In addition to the problem solutions, this repository provides a folder named Concepts_and_Algorithms that contains relevant algorithms, data structures, and common concepts associated with each problem category. These resources serve as a reference and provide a deeper understanding of the problem-solving techniques used in the solutions. The folder includes markdown files for each category, detailing the key algorithms and concepts related to that category.

How to Use

To further enhance the experience of working with the problem solutions, it is strongly recommended to open the solution files in Google Colab. Google Colab provides a convenient and interactive environment where you can execute the code, modify it, and experiment with different inputs and scenarios. Using Google Colab in conjunction with these problem solutions can greatly enhance your learning and understanding of the algorithms and concepts.

Contributing

I have personally solved these problems, but if you have alternative solutions or improvements, feel free to contribute by:

  1. Forking the repository.
  2. Creating a new branch for your contributions.
  3. Making the necessary changes and additions.
  4. Committing and pushing your changes to your forked repository.
  5. Creating a pull request with a detailed description of your changes.

Resources

  • LeetCode - The official LeetCode website.

License

This repository is licensed under the MIT License. You are free to use, modify, and distribute the code in this repository.

Acknowledgments

I would like to express my gratitude to the LeetCode community for providing these challenging problems that have helped enhance my problem-solving and algorithmic skills. I hope my solutions and the information provided here can still be helpful and inspire others in their learning journey.