Leetcode data structure and algorithm practices in Javascript. Made for those who'd like to run their code in local environments.
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
- Hash
- Heaps
- Sorting
- Stacks
- Strings
- BFS/DFS
- Backtracking
- DP
- Greedy
# Make sure to link this package first
$ npm link
$ npx algotest problems/<folder>/***.js
# example
$ npx algotest problems/linked-lists/23.merge_k_sorted_lists.js- LeetCode uses older version of
@datastructures-js/***packages. Might need to migrate to latest version any time - Need to make sure use
npm linkbefore using the commandnpx algotestfor linking the script underbin/