An open API service indexing awesome lists of open source software.

https://github.com/shahadathhs/leetcode-javascript

JavaScript-only LeetCode questions with solutions, explanations, and concept-based tagging.
https://github.com/shahadathhs/leetcode-javascript

algorithms data-structures javascript leetcode leetcode-javascript leetcode-solutions leetcode-typescript typescript

Last synced: about 2 months ago
JSON representation

JavaScript-only LeetCode questions with solutions, explanations, and concept-based tagging.

Awesome Lists containing this project

README

          

# LeetCode JavaScript 🚀

> A curated, JavaScript-only collection of LeetCode problems with **solutions**, **tests**, and **concept-based tags** to supercharge your learning.

---

## 📖 Repository Summary

This repo helps you:

* Tackle LeetCode problems in **vanilla JavaScript/TypeScript**
* Learn key concepts via **tags** (e.g., Prototype Chain, Recursion)
* Verify your solutions instantly with **Jest tests**
* Run a single problem or the entire suite
* Integrate into CI (GitHub Actions)

---

## ⚡ Usage

### 1. Install dependencies

```bash
pnpm install
```

### 2. Run all tests

```bash
pnpm test
```

### 3. Run tests for a single problem

```bash
pnpm test:problem 2618
```

---

## 🤝 Contributing

1. **Add a new problem**:

* Create `src/app/-.ts`
* Include `// * Concepts: ...` tags at the top
2. **Add tests**:

* Create `src/__tests__/-.test.ts`
* Follow the `describe.each` format for both implementations
3. **Verify everything**:

```bash
pnpm lint && pnpm format && pnpm test
```
4. **Open a PR** and we'll review!

Thanks for helping build this **JavaScript LeetCode powerhouse**!