boristane / boristane/arr-sorting

Add support for tree sort

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.