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

https://github.com/zhimbura/lca-multiple-algorithm

Algorithm for finding the least common parent for multiple nodes in one tree pass
https://github.com/zhimbura/lca-multiple-algorithm

example lca

Last synced: about 2 months ago
JSON representation

Algorithm for finding the least common parent for multiple nodes in one tree pass

Awesome Lists containing this project

README

          

# LCA алгоритм для больше чем 2 node за один проход

![GitHub Logo](public/preview.jpg)

На изображении красным отмечены выбранные Node, а синим их общий родитель.

Алгоритм поиска [getLowestCommonAncestor()](https://github.com/Tihon-Ustinov/lca-multiple-algorithm/blob/main/src/libs/Node.js#L26).

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Try online
See [lca-multiple-algorithm](https://zhimbura.github.io/lca-multiple-algorithm/).