From ec936350c8b571e7e87f5b1a79526f693477107c Mon Sep 17 00:00:00 2001 From: Anton Te Date: Mon, 16 Jul 2018 21:58:23 -0700 Subject: [PATCH] Extraneous assignment in Julia implementation of Graham Scan --- chapters/algorithms/graham_scan/code/julia/graham.jl | 1 - chapters/algorithms/graham_scan/graham_scan.md | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/chapters/algorithms/graham_scan/code/julia/graham.jl b/chapters/algorithms/graham_scan/code/julia/graham.jl index a581db9d3..4c2ccfd73 100644 --- a/chapters/algorithms/graham_scan/code/julia/graham.jl +++ b/chapters/algorithms/graham_scan/code/julia/graham.jl @@ -24,7 +24,6 @@ function graham_scan(points::Vector{Point}) # M will be the point on the hull M = 2 - i = 3 for i = 1:N while (ccw(points[M-1], points[M], points[i]) <= 0) if (M > 2) diff --git a/chapters/algorithms/graham_scan/graham_scan.md b/chapters/algorithms/graham_scan/graham_scan.md index e1695dee0..ea9f74def 100644 --- a/chapters/algorithms/graham_scan/graham_scan.md +++ b/chapters/algorithms/graham_scan/graham_scan.md @@ -35,7 +35,7 @@ In the end, the code should look something like this: {% method %} {% sample lang="jl" %} -[import:10-46, lang:"julia"](code/julia/graham.jl) +[import:10-45, lang:"julia"](code/julia/graham.jl) {% sample lang="hs" %} [import:9-18, lang:"haskell"](code/haskell/grahamScan.hs) {% sample lang="c" %}