Skip to content

Latest commit

 

History

History
84 lines (72 loc) · 2.55 KB

README.md

File metadata and controls

84 lines (72 loc) · 2.55 KB

LeetCode Solutions

Welcome to my LeetCode solutions repository! 🚀 Here, I will be solving all the LeetCode challenges in four programming languages: Go, Python, JavaScript, and Kotlin.

Feel free to explore the solutions and track my progress on my LeetCode profile.

Table of Contents

Languages

This repository contains solutions implemented in the following languages:

  • Go (.go)
  • Python (.py)
  • JavaScript (.js)
  • Kotlin (.kt)

Repository Structure

The repository is organized by problem categories, with each problem having subdirectories for the different language solutions. the structure follows Neetcode's roadmap

arrays-and-hashing/
└──  containsDuplicate
    ├──  go
    │   ├──  solution.go
    │   └──  tests_test.go
    ├──  js
    │   ├──  solution.js
    │   └──  tests.js
    ├──  kotlin
    │   └──  solution.main.kts
    ├──  python
    │   ├──  __pycache__
    │   ├──  solution.py
    │   └──  tests.py
    └──  README.md

Each folder represents a specific problem, and the solutions for each language are provided within that problem's folder.

Progress

I will be updating this repository regularly as I complete more LeetCode problems. You can check my overall progress on my LeetCode profile.

How to Use

  1. Clone the repository:

    git clone https://github.com/yourusername/leetcode-repo.git
    cd leetcode-repo
  2. Navigate to a problem folder to view the solutions for that problem in different languages.

  3. Run the tests:

    • Go: Create a go.mod file in the root of the project, then run:
      cd go
      go test -v
    • JavaScript:
      cd js
      node tests.js
    • Kotlin: Make sure to have Kotlin installed (e.g., on Arch Linux: sudo pacman -S kotlin). Then run:
      cd kotlin
      ./solution.main.kts
    • Python:
      cd python
      python tests.py

Contact

If you have any questions or suggestions, feel free to reach out!