Skip to content

Permutation not work if size is higher than the number of elements in the set #5

Description

@dopey2

Hello,

The permutation function doesn't work if the parameter size is higher than the length of the parameter arr.
Example

Works

G.permutation(['0', '1', '2', '3'], 4);

Doesn't work

G.permutation(['0', '1', '2', '3'], 5);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions