ผลต่างระหว่างรุ่นของ "เกรแฮมสแกน"

เนื้อหาที่ลบ เนื้อหาที่เพิ่ม
Djnoly (คุย | ส่วนร่วม)
Djnoly (คุย | ส่วนร่วม)
บรรทัด 28:
และให้คำตอบอยู่ในตาราง <code> points </code>
 
'''let''' N = number of points
'''let''' points[N+1] = the array of points
'''swap''' points[1] with the point with the lowest y-coordinate