Click here to see the full article post
It would be easier to understand if you just use h as a, C - h as b, thus F = C - h.
Pointer 2 starting at intersection ends up at the entrance when slides F steps because h + F = h + C - h = C
perfect guide for me.
thx for writing this article.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.