Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dopey2 opened this issue Apr 20, 2023 · 0 comments

Comments

@dopey2
Copy link

dopey2 commented Apr 20, 2023

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);
@dopey2 dopey2 changed the title Permutation not work if size if higher than the number of elements in the set Permutation not work if size is higher than the number of elements in the set Apr 6, 2024
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

No branches or pull requests

1 participant