Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/portexe/snips

This repository contains code snippets and algorithms that I want to save
https://github.com/portexe/snips

algorithms data-structures helper-functions helpers

Last synced: 4 days ago
JSON representation

This repository contains code snippets and algorithms that I want to save

Awesome Lists containing this project

README

        

This repository contains code snippets and algorithms that I want to save. More are being added constantly.

`npm install portexe-snips`

### Algorithms

1. Get Prime Factors (Of a given integer)

### Data Structures

1. Binary Search Tree
2. Trie

### Sorting

1. Bubble Sort
2. Insertion Sort
3. Merge Sort

### Helpers

1. Random Number (Between given range)

## Please Note

Because I am adding checks throughout the algorithms to throw potential errors, I am decreasing the algorithm's efficiency slightly. In the future it may make sense to only run the checks in a type of "test mode", otherwise ignore the checks in a production environment.