Driver code to test above methods
let xO , yO ; xO = 1 ; yO = 0 ; let points = [ [ - 1 , 3 ] , [ 4 , 3 ] , [ 2 , 1 ] , [ - 1 , - 2 ] , [ 3 , - 3 ] ] ; let N = points . length ; document . write ( minLinesToCoverPoints ( points , N , xO , yO ) )