Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Included Python code in .md
  • Loading branch information
wmboyles authored Jul 8, 2018
commit 37d5cb34da4f7953ab1e9fd12c0739b9b6c3adb9
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ We can find whether a rotation is counter-clockwise with trigonometric functions
[import:24-26, lang:"c_cpp"](code/c/graham.c)
{% sample lang="js" %}
[import:36-38, lang:"javascript"](code/javascript/graham-scan.js)
{% sample lang="py" %}
[import3-5, lang:"python"](code/python/grahamScan.py)
{% endmethod %}

If the output of this function is 0, the points are collinear.
Expand All @@ -42,6 +44,8 @@ In the end, the code should look something like this:
[import:65-95, lang:"c_cpp"](code/c/graham.c)
{% sample lang="js" %}
[import:1-30, lang:"javascript"](code/javascript/graham-scan.js)
{% sample lang="py" %}
[import31-44, lang:"python"](code/python/grahamScan.py)
{% endmethod %}

### Bibliography
Expand Down