I tried to plot case 2 on my notepad. Seems that it does not self-cross during the first round, yet it does self-cross in the second round...
Can someone help me clarify it? Thanks!!
There is NO second round :) you should end your plot at the last value of the array and continue no more.
Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.