Skip to content

Add Cycle Sort implementation#2108

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

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

Conversation

@putku45
Copy link

@putku45 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.

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

Comments