algo-js
Leetcode data structure and algorithm practices in Javascript. Made for those who'd like to run their code in local environments.
Problems
This repo will help you with the follow types of problems in LeetCode.
- Linked-list
- Arrays
- Sliding Window
- Binary Search
- Binary Search Trees
- Binary Trees
- Graphs
- LRU/LFU
- Tries
- Heaps
- Sorting
- Stacks
- Strings
- BFS/DFS
- Backtracking
- DP
- Greedy
Commands
# Make sure to link this package first
$ npm link
$ npx algotext problems/<folder>/***.js
# example
$ npx algotest problems/linked-lists/23.merge_k_sorted_lists.js
Notes
- LeetCode uses older version of
@datastructures-js/***
packages. Might need to migrate to latest version any time - Need to make sure use
npm link
before using the commandnpx algotest
for linking the script underbin/