← 返回首页
Add Cycle Sort implementation by putku45 · Pull Request #2108 · trekhleb/javascript-algorithms · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

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

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Add Cycle Sort implementation#2108

Open
putku45 wants to merge 3 commits into
trekhleb:masterfrom
putku45:add-cycle-sort
Open

Add Cycle Sort implementation#2108
putku45 wants to merge 3 commits into
trekhleb:masterfrom
putku45:add-cycle-sort

Conversation

Copy link
Copy Markdown

putku45 commented Feb 18, 2026

Summary:
This PR introduces an implementation of the Cycle Sort algorithm along with unit tests and documentation.

Added:
CycleSort implementation
Corresponding test cases
README documentation with explanation and complexity analysis

Cycle Sort is an in-place sorting algorithm that minimizes memory writes and is optimal in terms of total write operations.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Footer

© 2026 GitHub, Inc.