Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Programming Challenge #1488

Name: Anonymous 2017-01-22 14:57

Implement a "diff" program.
Input: two strings or files that may potentially be quite long.
Output: An edit sequence of inserts and deletes to go from one to the other.

Name: Anonymous 2017-01-22 20:02

in sudocode:

result = []

for each letter in input1
do
result.add(new replaceop(actiontype.remove, letter))
done

for each letter in input2
do
result.add(new replaceop(actiontype.add, letter))
done

return result

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List