boristane / boristane/arr-sorting

Add support for smooth sort

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

Sorts an array using the smooth sort algorithm.

```js
const arr = [2, 5, 10, 5, 32, 6];
smooth(arr); // [2, 5, 5, 6, 10, 32]
smooth(arr, (a, b) => b - a); // [32, 10, 6, 5, 5, 2]
```

**Update README.md**.

Contributor guide

Open the contributing guide

Research direction

Start by reading README.md and the repository's existing sorting implementations to locate the public entry point and naming conventions. Add smooth-sort support with the shown ascending and comparator-based descending behavior, then update README.md with the documented usage example.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.