Skip to content

Latest commit

 

History

371 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the LeetCode Problem Solving repository!

This repository contains solutions to various problems from LeetCode, a popular platform for coding challenges.

Table of Contents

  • Introduction
  • Getting Started
  • Repository Structure
  • Contributing
  • Best Practices
  • License

Introduction

The purpose of this repository is to:

  • Share solutions to LeetCode problems.
  • Help others understand different approaches to solving these problems.
  • Practice and improve problem-solving skills.

Getting Started

Prerequisites

To get started with the repository, ensure you have the following installed on your local machine:

  • Python (version 3.x)
  • Git

Cloning the Repository

Clone this repository to your local machine using the following command:

git clone https://github.com/Sisyetad/leetcode.git cd leetcode

Running the Solutions

Each problem is solved using Python and Java. You can run the solutions using any Python interpreter. For example:

python solutions/problem_1_two_sum.py

Repository Structure

The repository is organized as follows:

leetcode-problem-solving/ ├── solutions/ │ ├── problem_1_two_sum.py │ ├── problem_2_add_two_numbers.py │ └── ... ├── README.md └── .gitignore

solutions/: Contains Python files, each corresponding to a LeetCode problem.

README.md: This file, providing an overview and instructions.

.gitignore: Specifies files to ignore in the repository.

Contributing

We welcome contributions! To contribute:

  1. Fork the repository.
  2. Create a new branch for your feature or bug fix.
  3. Commit your changes with clear commit messages.
  4. Push your branch to your forked repository.
  5. Create a Pull Request.

Contribution Guidelines

  • Follow the existing code style.
  • Include problem descriptions as comments in the solution files.
  • Provide a clear and concise explanation of your solution.
  • Ensure your code is well-documented and readable.

Best Practices

  • Understand the Problem: Read the problem statement carefully and make sure you understand the requirements.
  • Plan Your Approach: Before coding, plan your approach and think about edge cases.
  • Test Your Solution: Test your solution with different inputs to ensure its correctness.
  • Optimize: Consider the time and space complexity of your solution and optimize if possible.

License

This repository is licensed under the MIT License. See the LICENSE file for more information.

About

my first leetcode trials

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages