Permutations: Difference between revisions
Content added Content deleted
PatGarrett (talk | contribs) (→{{header|C}}: remove spam link) |
PatGarrett (talk | contribs) (→{{header|C}}: remove spam link) |
||
Line 1,065: | Line 1,065: | ||
=={{header|C}}== |
=={{header|C}}== |
||
Non-recursive algorithm to generate all permutations. It prints objects in lexicographical order. |
Non-recursive algorithm to generate all permutations. It prints objects in lexicographical order. |
||
[https://habr.com/post/354790/] |
|||
<lang c> |
<lang c> |
||
#include <stdio.h> |
#include <stdio.h> |