Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/tasxatzial/leetcode-js

Leetcode solutions in JavaScript
https://github.com/tasxatzial/leetcode-js

leetcode leetcode-javascript

Last synced: 3 days ago
JSON representation

Leetcode solutions in JavaScript

Awesome Lists containing this project

README

        

# Leetcode (JavaScript)

[Leetcode](https://leetcode.com/) is an online platform that provides a collection of coding challenges and algorithmic problems to help individuals improve their programming skills and prepare for technical interviews.

---

This repo contains my solutions to the problems.

## Solutions

| # | Problem | Algorithm / Structure | Concept |
|------|----------------------------------------------------------------------------------|------------------------------|---------------------|
| 1 | [Two Sum](problems/1/) | Binary search, Hash map | |
| 20 | [Valid Parentheses](problems/20/) | Stack | |
| 21 | [Merge Two Sorted Lists](problems/21/) | | |
| 34 | [Find First and Last Position of Element in Sorted Array](problems/34) | Binary search | |
| 84 | [Largest Rectangle in Histogram](problems/84/) | Stack | |
| 113 | [Path Sum II](problems/113/) | Depth-first search | |
| 121 | [Best Time to Buy and Sell Stock](problems/121/) | | |
| 189 | [Rotate Array](problems/189/) | | |
| 191 | [Number of 1 Bits](problems/191/) | | Hamming weight |
| 211 | [Design Add and Search Words Data Structure](problems/211/) | Trie | |
| 258 | [Add Digits](problems/258/) | | Digital root |
| 421 | [Maximum XOR of Two Numbers in an Array](problems/421/) | Trie | |
| 532 | [K-diff Pairs in an Array](problems/532/) | Binary search, Hash map | |
| 941 | [Valid Mountain Array](problems/941/) | | |
| 1305 | [All Elements in Two Binary Search Trees](problems/1305/) | Depth-first search | |
| 1672 | [Richest Customer Wealth](problems/1672/) | | |
| | | | |

## Implemented algorithms & data structures

* [Binary search](https://en.wikipedia.org/wiki/Binary_search_algorithm)
* [Depth-first search](https://en.wikipedia.org/wiki/Depth-first_search)
* [Hash map](https://en.wikipedia.org/wiki/Hash_table)
* [Stack](https://en.wikipedia.org/wiki/Stack_(abstract_data_type))
* [Trie](https://en.wikipedia.org/wiki/Trie)

## Concepts

* [Digital root](https://en.wikipedia.org/wiki/Digital_root)
* [Hamming weight](https://en.wikipedia.org/wiki/Hamming_weight)