Skip to content

Add support for introsort #20

@boristane

Description

@boristane

Sorts an array using the introsort algorithm.

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

Reference

Update README.md.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions