JuliaMath / Combinatorics.jl

A combinatorics library for Julia
http://juliamath.github.io/Combinatorics.jl/dev/
Other
214 stars 58 forks source link

Derangements #150

Open FedericoStra opened 8 months ago

FedericoStra commented 8 months ago

Add a function to generate all derangements:

julia> map(join, derangements("abbac"))
4-element Vector{String}:
 "baacb"
 "bacba"
 "bcaba"
 "caabb"
codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (e6888be) 96.97% compared to head (3e27e3a) 96.98%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #150 +/- ## ======================================= Coverage 96.97% 96.98% ======================================= Files 7 7 Lines 728 729 +1 ======================================= + Hits 706 707 +1 Misses 22 22 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.