Example:
data = ['T', 'A', 'I', 'P', 'E', 'I']
If we take the length (6) and subtract index 2 ('I'): 6 - 2 = 4
This result, 4, means:
4.length - 1(gaps + 1) - 1(larger_idx - smaller_ids + 1) - 1larger_idx - smaller_idsgaps + 1.length - 2(gaps + 1) - 2(larger_idx - smaller_ids + 1) - 2larger_idx - smaller_ids - 1Example
data = ['T', 'A', 'I', 'P', 'E', 'I']
If we subtract index 1 ('A') from index 4 ('E'): 4 - 1 = 3
This result, 3, means:
1 ('A') to index 4 ('E').3 + 1.