Skip to content
daiyanzePublic

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Latest commit

 

History

65 Commits

Folders and files

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
  • Hash
  • Heaps
  • Sorting
  • Stacks
  • Strings
  • BFS/DFS
  • Backtracking
  • DP
  • Greedy

Commands

# 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

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

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages