Skip to Content
2
Oct 02, 2018 at 03:02 PM

Algorithm "Longest common subsequence problem" in ABAP

848 Views Last edit Oct 02, 2018 at 03:03 PM 2 rev

Hi,

I'm a little lazy to develop it myself... Did anyone implement the algorithm "Longest common subsequence problem" between 2 strings, in ABAP, and would like to share it? This is an algorithm which can be used in Git to display the characters which are different between two lines for instance.

I want to achieve something like that (Azure DevOps), i.e. 2 colors on the same line (light green versus darker green) - My issue is to know which characters are different, not how to render the colors of course:

Or do you know a better alternative?

Thanks :)

Sandra

Attachments

aajx0.png (27.7 kB)