Permutations: Difference between revisions

Content added Content deleted
(→‎{{header|C}}: remove spam link)
(→‎{{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. A paper here:
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>