Re: Get all combinations of n digits among m digits

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu