Skip to content

Extraneous assignment in Julia implementation of Graham Scan #262

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 17, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion chapters/algorithms/graham_scan/code/julia/graham.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion chapters/algorithms/graham_scan/graham_scan.md
Original file line number Diff line number Diff line change
Expand Up @@ -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" %}
Expand Down