MTrajK / coding-problems

Solutions for various coding/algorithmic problems and many useful resources for learning algorithms and data structures

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Not an issue, just a query

hDmtP opened this issue · comments

Hi, first of all, "prev" is short from "previous" and "curr" is short from "current" (previous and current points).
You could see that "prev" and "curr" are used 2 lines above intersect(prev, curr, p), so for this method, we need to store the point from the CURRENT iteration so we could use it in the NEXT iteration.