GitHub - kwkr/KME

1 min read Original article ↗

Kata Machine Extended

Extending on the original project of ThePrimeagen

Idea

Practice common algorithms and data structures and show-off your progress. Your progress is saved in stats.json. This can be used to generate some cool badges on your GitHub profile. The result is visible below:

This fetches your stats.json and renders your personal badge.

How to use it?

Make sure you have Node.js and yarn installed: npm install --global yarn

Clone the repo and install the dependencies

Start with an exercise. This command will pick some random exercise for you. Your task is to implement it in today/index.ts. If you want to pick some specific exercise, you can add a pattern to include after the command.

yarn start # optionally, for example "BinarySearch"

After your are done with the implementation you can check your solution by running:

If your solution passes the test, your stats.json will be updated accordingly. You can start a new exercise afterwards.

Available exercises

  • ArrayList
  • BFSGraphMatrix
  • BTBFS
  • BTInOrder
  • BTPostOrder
  • BTPreOrder
  • BinarySearchList
  • BubbleSort
  • CompareBinaryTrees
  • DFSGraphList
  • DFSOnBST
  • DoublyLinkedList
  • LRU
  • LinearSearchList
  • Map
  • MazeSolver
  • MinHeap
  • Queue
  • QuickSort
  • SinglyLinkedList
  • Stack
  • Trie
  • TwoCrystalBalls