◐ Shell
clean mode source ↗

Avoid mutating input array in bubble sort implementations by MayankSharma-2812 · Pull Request #1876 · TheAlgorithms/JavaScript

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@MayankSharma-2812

Copy link Copy Markdown

Ensures both bubble sort implementations return a sorted copy of the input array while preserving the original input.

@codecov-commenter

codecov-commenter commented

Jan 26, 2026

edited

Loading

Copy link Copy Markdown

Codecov Report

❌ Patch coverage is 84.37500% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 85.87%. Comparing base (08d8c6b) to head (ddf6fb2).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
Search/BinarySearch.js 66.66% 4 Missing ⚠️
Sorts/BubbleSort.js 82.60% 4 Missing ⚠️
Sorts/SelectionSort.js 71.42% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1876      +/-   ##
==========================================
- Coverage   85.91%   85.87%   -0.05%     
==========================================
  Files         379      379              
  Lines       19778    19789      +11     
  Branches     3015     3030      +15     
==========================================
+ Hits        16993    16994       +1     
- Misses       2785     2795      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@raklaptudirm raklaptudirm Awaiting requested review from raklaptudirm

@appgurueu appgurueu Awaiting requested review from appgurueu appgurueu is a code owner

At least 2 approving reviews are required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@MayankSharma-2812 @codecov-commenter