beginA == endA && beginB > endB
is an insert edit, that is sequence B inserted the elements in region [beginB, endB)
at beginA
. beginA > endA && beginB > endB
is a replace edit, that is sequence B has replaced the range of elements between [beginA, endA)
with those found in [beginB, endB)
.