Skip to content

A collection of solutions to coding challenges and problems from LeetCode, focusing on algorithms and data structures. The repository includes solutions in multiple programming languages, with explanations for optimized approaches to various coding challenges.

Notifications You must be signed in to change notification settings

Th30utcast/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions

This repository contains solutions to various problems from LeetCode. The focus is on implementing optimized algorithms and data structures to solve coding challenges.

Repository Overview

The solutions are organized by problem categories and difficulty level, including but not limited to:

  • Array
  • String
  • Linked List
  • Binary Tree
  • Dynamic Programming
  • Greedy Algorithms
  • Recursion
  • Graphs
  • Sorting and Searching

Each problem's solution is designed to be as efficient as possible, with explanations provided where necessary. Solutions are implemented in multiple programming languages to offer flexibility and enhance understanding.

Languages Used

  • Python
  • C++
  • JavaScript

Problem Categories

1. Array Problems

  • Description: Solutions involving array manipulation, sorting, and searching.
  • Common Concepts: Two-pointer technique, sliding window, and binary search.

2. Dynamic Programming

  • Description: Problems involving optimization using overlapping subproblems and optimal substructure properties.
  • Common Concepts: Memoization, tabulation, and recursion.

3. Graphs

  • Description: Problems involving graph traversal, shortest paths, and connectivity.
  • Common Concepts: Breadth-First Search (BFS), Depth-First Search (DFS), Dijkstra's algorithm.

4. Recursion and Backtracking

  • Description: Problems involving recursive problem-solving approaches and backtracking.
  • Common Concepts: Divide and conquer, recursion trees, decision trees.

Getting Started

Prerequisites

Ensure that you have the necessary programming environments installed for the language you wish to use:

  • Python: Download from here.
  • C++: Ensure you have a C++ compiler (e.g., GCC or Clang).
  • JavaScript: Ensure Node.js is installed for running JS scripts locally.

Installation

  1. Clone the repository:
    git clone https://github.com/Th30utcast/LeetCode.git

Navigate into the project directory:

bash Copy code cd LeetCode Run the solutions:

For Python:

bash Copy code python problem_name.py For C++:

bash Copy code g++ problem_name.cpp -o problem_name ./problem_name For JavaScript:

bash Copy code node problem_name.js Contributing Contributions to this repository are welcome! If you have optimized solutions or solutions in other languages, feel free to open a pull request.

Fork the repository. Create a feature branch (git checkout -b feature-branch). Commit your changes (git commit -m "Add optimized solution for problem X"). Push to the branch (git push origin feature-branch). Open a pull request. Resources LeetCode GeeksforGeeks License This repository is licensed under the MIT License. See the LICENSE file for more information.

yaml Copy code


Description for LeetCode repository:

A collection of coding challenge solutions from LeetCode, focusing on a variety of topics such as algorithms, data structures, dynamic programming, graphs, recursion, and more. Solutions are provided in Python, C++, and JavaScript, with a focus on efficiency and optimization.


You can create the README.md file and push it to the repository using the following steps:

  1. Create the README.md file in the repository's root directory.
  2. Stage and commit the file:
    git add README.md
    git commit -m "Added README.md"
    git push origin main

About

A collection of solutions to coding challenges and problems from LeetCode, focusing on algorithms and data structures. The repository includes solutions in multiple programming languages, with explanations for optimized approaches to various coding challenges.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published