While condition is probably wrong
Opened this issue · 0 comments
ChrisVilches commented
https://github.com/ChrisVilches/Beautiful-Bridges/blob/main/src/beautifulbridges.js#L55
while (i < N) {
solutionArcs.push(i)
i = nextArc[i]
}
But the code still works as expected because undefined < 10
is false
(or any other number). i
eventually becomes undefined
so it exits the loop.