Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/portexe/snips
- Owner: portexe
- License: mit
- Created: 2021-06-01T15:58:55.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-06-21T16:39:23.000Z (over 3 years ago)
- Last Synced: 2024-11-23T02:29:03.554Z (about 2 months ago)
- Topics: algorithms, data-structures, helper-functions, helpers
- Language: JavaScript
- Homepage:
- Size: 41 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.