feature/OneMoreSorting #9

Merged
lobo merged 2 commits from feature/OneMoreSorting into main 2026-02-04 15:34:18 +01:00

2 Commits

Author SHA1 Message Date
6f282a004b Add Cocktail Sort algorithm and UI
Introduce Cocktail (Shaker) Sort to the sorting visualizer: implement cocktailSort and a helper switchValuesIfCorrect in the SortingService to generate snapshots for the animation. Add SHAKE_SORT_WIKI URL constant and a UI paragraph (with a link) plus German translation text for the algorithm explanation. Expose the new algorithm in the component (availableAlgorithms and switch handling). Also refactor the component to use Angular's inject() for SortingService and ChangeDetectorRef, tighten some typings (timeoutIds -> number[]), adjust default arraySize, and use const where appropriate.
2026-02-04 15:33:51 +01:00
e1680426ad Update sorting.service.ts 2026-02-04 15:01:36 +01:00