Skip to content

Commit 43cc48f

Browse files
mika314leios
authored andcommitted
Extraneous assignment in Julia implementation of Graham Scan (#262)
1 parent 918cb57 commit 43cc48f

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

chapters/algorithms/graham_scan/code/julia/graham.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ function graham_scan(points::Vector{Point})
2424

2525
# M will be the point on the hull
2626
M = 2
27-
i = 3
2827
for i = 1:N
2928
while (ccw(points[M-1], points[M], points[i]) <= 0)
3029
if (M > 2)

chapters/algorithms/graham_scan/graham_scan.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ In the end, the code should look something like this:
3535

3636
{% method %}
3737
{% sample lang="jl" %}
38-
[import:10-46, lang:"julia"](code/julia/graham.jl)
38+
[import:10-45, lang:"julia"](code/julia/graham.jl)
3939
{% sample lang="hs" %}
4040
[import:9-18, lang:"haskell"](code/haskell/grahamScan.hs)
4141
{% sample lang="c" %}

0 commit comments

Comments
 (0)