You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the slack channel, Numiastowski discovered that permutations causes a memory problem. A list of 9 elements might have as many as 9! permutations, and therefore, 9! stack calls.
But before settling on that, we should consider use cases of the permutation function. Has anyone used it? How did you use it? What problem did it solve for you?
The text was updated successfully, but these errors were encountered:
In the slack channel, Numiastowski discovered that
permutations
causes a memory problem. A list of 9 elements might have as many as 9! permutations, and therefore, 9! stack calls.I believe this can be solved by implementing something like this: https://www.nayuki.io/page/next-lexicographical-permutation-algorithm, or
any non-recursive permutation function.But before settling on that, we should consider use cases of the
permutation
function. Has anyone used it? How did you use it? What problem did it solve for you?The text was updated successfully, but these errors were encountered: