Skip to content

feat(computational geometry): add JavaScript version of Graham Scan#1252

Open
ythecombinator wants to merge 1 commit intoOpenGenus:masterfrom
ythecombinator:master
Open

feat(computational geometry): add JavaScript version of Graham Scan#1252
ythecombinator wants to merge 1 commit intoOpenGenus:masterfrom
ythecombinator:master

Conversation

@ythecombinator
Copy link

Given an array p with N points on a 2D space, this calculates the convex hull of p using Graham's Scan implemented in vanilla ES6.

Time complexity: O(n log n) | linearithmic
Space complexity: O(n) | linear

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments