Hacker News new | past | comments | ask | show | jobs | submit login
Why does Heap's algorithm work? (2016) (ruslanledesma.com)
124 points by signa11 on July 1, 2017 | hide | past | favorite | 5 comments



I have converted the presented algorythm to a non-recursive yielding version for what its worth:

https://gist.github.com/8BitPimp/fb182d04f6c31cabdceb20f714b...


Hey, thanks for sharing. I put a reference to your gist in the post for posterity's sake.


Reminds me of bell ringing.


Nice explanation!


Thank you!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: