2 Commits
Author SHA1 Message Date
Syed Muhammad Nafay Hassan RizviandClaude Sonnet 5 b1cf505131 Fix flash_sort permutation phase raising IndexError on repeated values (#15380)
flash_sort([6, 6, 4, 4, 6]) raised IndexError (about 2% of random small
inputs). Replace the permutation phase with the standard cycle-leader
version and add doctests for two previously failing inputs.

Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-09-21 11:31:17 +02:00
Anish Rajwani19ANISHpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
560f84d49c Flash sort (#13316)
* flash sort algorithm added

* updating DIRECTORY.md

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: 19ANISH <19ANISH@users.noreply.github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-09-09 14:32:54 +02:00