Skip to content

TheLonelyOtaku315/LeetCode

Repository files navigation

LeetCode Solutions

Welcome to my LeetCode repository! Here, I share my solutions to various problems on LeetCode, categorized by difficulty and topic. This repository serves as a personal reference and a resource for others tackling similar challenges.

Structure

The solutions are organized as follows:

  • Difficulty: Problems are grouped into Easy, Medium, and Hard categories.
  • Topic: Solutions are further categorized by topics like Arrays, Strings, Trees, Graphs, Dynamic Programming, etc.
  • Languages: Most solutions are implemented in Python, but other languages like C++ or Java may also be included.

Each solution includes:

  • The problem description (brief summary).
  • My approach and thought process.
  • A detailed implementation.
  • Comments for clarity and readability.

Getting Started

  1. Clone this repository:
    git clone https://github.com/yourusername/leetcode-solutions.git
  2. Navigate to the folder of interest:
    cd leetcode-solutions/Difficulty/Topic
  3. Open the corresponding solution file.

Contribution

Feel free to fork this repository and contribute by:

  • Adding solutions to new problems.
  • Improving existing solutions.
  • Providing alternative approaches to existing problems.

To contribute:

  1. Fork the repository.
  2. Create a new branch for your changes:
    git checkout -b feature-branch-name
  3. Commit and push your changes.
  4. Submit a pull request.

Feedback

Feedback is welcome! If you have suggestions or questions, please create an issue or reach out via email at your-email@example.com.


Happy coding!

LeetCode Topics

Hash Table

0001-two-sum
0013-roman-to-integer

Math

0009-palindrome-number
0013-roman-to-integer
0066-plus-one

String

0013-roman-to-integer
0014-longest-common-prefix
0020-valid-parentheses
0028-find-the-index-of-the-first-occurrence-in-a-string
0058-length-of-last-word

Array

0001-two-sum
0026-remove-duplicates-from-sorted-array
0027-remove-element
0035-search-insert-position
0066-plus-one

Trie

0014-longest-common-prefix

Stack

0020-valid-parentheses

Two Pointers

0026-remove-duplicates-from-sorted-array
0027-remove-element
0028-find-the-index-of-the-first-occurrence-in-a-string

String Matching

0028-find-the-index-of-the-first-occurrence-in-a-string

Binary Search

0035-search-insert-position

About

LeetCode challenge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published