Skip to content

daiyanze/algo-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published