Skip to content

My repo for daily LeetCode challenge, mainly in Python

Notifications You must be signed in to change notification settings

hungphongtrn/LeetCode

Repository files navigation

LeetCode Challenge Solutions in Python

This repository contains my solutions to LeetCode coding challenges in Python. The question stack I am using is Top Interview Questions

Introduction

LeetCode is a popular platform for software engineers to practice coding problems and improve their coding skills. As a Machine Learning Engineer, I've been using LeetCode to improve my coding skills and learn new algorithms and data structures.

This repository contains Python solutions to LeetCode problems. I've organized the solutions by the problem number, and each solution includes a detailed explanation of the problem, my thought process and approach, and the code itself.

Contents

This repository contains solutions to LeetCode problems in Python, organized by problem number. Each problem includes:

  • A detailed explanation of the problem, including any constraints or assumptions
  • My thought process and approach to solving the problem
  • The code itself, with detailed comments explaining each step

The list

  1. Two Sum-Easy
  2. Add two Numbers - Medium
  3. Longest Substring Without Repeating Characters - Medium
  4. Median of Two Sorted Arrays - Hard
  5. Longest Palindromic Substring - Medium
  6. Reverse Integer - Medium
  7. String to Integer (atoi) - Medium
  8. Regular Expression Matching - Hard - In Progress
  9. Containers With Most Water - Medium
  10. Roman to Integer - Easy
  11. Longest Common Prefix - Easy
  12. 3Sum - Medium

Getting Started

To get started with this repository, you will need:

  • A computer with Python 3 installed
  • A LeetCode account to access the problems To run the code, simply download or clone the repository and run the Python files. Each file contains a single solution to a specific problem, and can be run independently.

Contributing If you find an error in any of the solutions or have a better solution to a problem, feel free to contribute to the repository. Simply fork the repository, make your changes, and create a pull request.

About

My repo for daily LeetCode challenge, mainly in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages