@SergeyTachenov Not sure if I get what you are saying completely. For case 2, it could be like the graph below:
In which case i = 5 and merges with (i-4). Is this not a valid case?
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.