Re: Get all combinations of n digits among m digits
- Posted by jmduro 1 week ago
- 185 views
Some minor tweaks let save some time:
Euphoria:recurse, duration: 8.850000 s
remaining = remove(remaining, 1)
Euphoria:recurse, duration: 8.700000 s
recurse(remaining, ne, append(selected, r1))
Euphoria:recurse, duration: 8.689000 s
However using built-in functions instead of slicing or operators is not always the best choice: using head(remaining) instead of remaining[1] makes lose time.
Jean-Marc

