Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 924 Bytes

README.md

File metadata and controls

42 lines (32 loc) · 924 Bytes

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 command npx algotest for linking the script under bin/