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

https://github.com/sgb-io/functional-algos

A utility library containing algorithm implementations, using functional TypeScript.
https://github.com/sgb-io/functional-algos

algorithms data-structures functional-programming javascript javascript-algorithms typescript

Last synced: 3 months ago
JSON representation

A utility library containing algorithm implementations, using functional TypeScript.

Awesome Lists containing this project

README

          

# Functional Algos

`functional-algos` is a TypeScript library containing popular algorithm implementations.

## Installation

Install `functional-algos`:

```bash
yarn add functional-algos # or whatever package manager you use
```

## Algorithms

Library functions exposed by `functional-algos`

- Sorting
- [Selection Sort](src/sorting/selection-sort)
- [Heap Sort](src/sorting/heap-sort)
- [Merge Sort](src/sorting/merge-sort)
- [Quicksort](src/sorting/quicksort)
- [Quicksort (Recursive)](src/sorting/quicksort-recursive)
- [Insertion Sort](src/sorting/insertion-sort)
- [Bucket Sort](src/sorting/bucket-sort)
- Searching
- [Binary Search](src/searching/binary-search)
- [Breadth-first Search](src/searching/bfs)
- [Depth-first Search](src/searching/dfs)
- [Dijkstra](src/searching/dijkstra)
- Dynamic Programming
- [Fibonacci](src/dynamic/fib)
- [Trapping Water](src/dynamic/trapping-water/)
- Traversal
- [Linked Lists](src/traversal/linked-list/)
- Optimization
- [Memoize](src/optimization/memoize/)

## Problems

Examples of specific problems solved using `functional-algos`, but not exposed by the library

- [Staircase Problem](src/problems/staircase/)

## Contributing

Contributions are welcomed! Please note the goal of the library is to expose working, complete, re-usable implementations.

## License

MIT