logoalt Hacker News

klysm • 04/01/2025 • 1 reply • view on HN

I was surprised to see this as a library at all - isn’t it trivial especially for small collections?


Replies

ww520 • 04/01/2025

Yes. The core algorithm is like 20 lines of code in the run_algorithm() function. But to make it easier to use, to handle different types of input, and report/query output, etc. take much more. This is the difference between an idea and a product in a loose sense. It gives purpose to my learning process anyway.

➕ show 1 reply