When I started toybox, I planned to build in some common-use algos, too. Stuff like:
Longest Common Subsequence (LCS)
Longest Increasing Subsequence (LIS)
Prime Factors
Sum of Arithmetic Subsequence
...and a few more.
Granted, those are all really trivial to implement. At the same time, I've consulted in orgs that hand-jammed their own implementations and bork'ed it up. So, having an importable implementation can be really nice, even for trivial stuff like that.
When I started toybox, I planned to build in some common-use algos, too. Stuff like:
Granted, those are all really trivial to implement. At the same time, I've consulted in orgs that hand-jammed their own implementations and bork'ed it up. So, having an importable implementation can be really nice, even for trivial stuff like that.