5 ms·
Show HN: StackSort – a Python package inspired by XKCD Ineffective Sorts
- yoru-sulfur 6y agoI was inspired from the XKCD comic [1] and the original JavaScript version[2] to write an implementation in Python that could be used like any other package. from stacksort import bubblesort This would expose a callable object that when passed a list would attempt to search StackOverflow for python sorting questions that had "bubblesort" in them, extract codeblocks from the answers, and try to run them on the input list. [1] https://xkcd.com/1185/ https://xkcd.com/1185/ [2] https://gkoberger.github.io/stacksort/ https://gkoberger.github.io/stacksort/