GitShow/fireship-io/sorting-algorithms
fireship-io

sorting-algorithms

A collection of sorting algorithms implemented in JS

by fireship-io
Star on GitHubForknpm

JavaScript

274 stars43 forks1 contributorQuiet · 2y agoSince 2023

Meet the team

See all 1 on GitHub →
codediodeio
codediodeio1 contribution

Languages

View on GitHub →
JavaScript100%

Commit activity

Last 12 weeks · 0 commits

Full graph →

Community health

1 of 6 standards met

Community profile →
25
✓README○License○Contributing○Code of Conduct○Issue Template○PR Template

Recent PRs & issues

Quiet · 1 discussion · Last activity 2y ago
See all on GitHub →
pankaj-bind
[FEATURE REQUEST] Counting Sort AlgorithmOpenIssue

assign me this task

pankaj-bind · 2y ago

Recent fixes

View closed PRs →
pepper-lees
Added a loop that runs the benchmark for different values of NMergedPR

I also sorted (ha) each algorithm based on their general complexity, so that folks who wanna run it can quickly comment out slower algos so that they can test faster ones with better values of N. Interestingly, on my system, Merge sort gets really bad at 1,000,000 elements with its large amount of memory usage, and the custom quick sort performs better than JS sort!

pepper-lees · 2mo ago
Rudxain
`const temp`MergedPR
Rudxain · 8mo ago
Rudxain
modular no-temp swapMergedPR

This uses destructuring syntax, to avoid the potential confusion of temporary vars. It also defines a fn that mutates whatever array is passed as input, without returning it. A more functional approach would be to shallow-copy the array, mutate the copy, then return it. Should we do that instead? BTW, can be replaced by (#3 closes it)

Rudxain · 2y ago
Structured data for AI agents

Repository: fireship-io/sorting-algorithms. Description: A collection of sorting algorithms implemented in JS Stars: 274, Forks: 43. Primary language: JavaScript. Languages: JavaScript (100%). Open PRs: 0, open issues: 1. Last activity: 2y ago. Community health: 25%. Top contributors: codediodeio.

·@ofershap

Replace github.com with gitshow.dev