Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit45a39f6

Browse files
committed
Added comments.
1 parente9b25b3 commit45a39f6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎convex-hull/convex-hull.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def compute_hull(self):
5151
far_point=None
5252
whilefar_pointisnotstart:
5353

54+
# get the first point (initial max) to use to compare with others
5455
p1=None
5556
forpinpoints:
5657
ifpispoint:
@@ -62,6 +63,7 @@ def compute_hull(self):
6263
far_point=p1
6364

6465
forp2inpoints:
66+
# ensure we aren't comparing to self or pivot point
6567
ifp2ispointorp2isp1:
6668
continue
6769
else:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp