boristane / boristane/arr-sorting
Add support for tree sort
Open
enhancement
good first issue
help wanted
- Dominant language
- JavaScript
- Stars
- 2
- Forks
- 0
- PR merge metrics
- No merged PRs in 30d
Description
Sorts an array using the tree sort algorithm.
```js
const arr = [2, 5, 10, 5, 32, 6];
tree(arr); // [2, 5, 5, 6, 10, 32]
tree(arr, (a, b) => b - a); // [32, 10, 6, 5, 5, 2]
```
**Update README.md**.
Contributor guide
Assessment
This issue has not been assessed yet.