Re:Show HN: A stab at building my own string diffing library
by samatman on Friday May 20, 2022 @10:07AM
(#31447591)
> Aside from the fact that they are basically generating power sets
!
String diff calls for an M x N cost matrix and simple dynamic programming with tail calls (or you can unwind it into loops if you have to).
Not... not power sets.
A library that I like for this is https://www.npmjs.com/package/generatorics although there may be more modern ones available.