OpenGenus/cosmos

Add union of rectangles

Open

#1,776 opened on Oct 17, 2017

View on GitHub
 (1 comment) (1 reaction) (0 assignees)C++ (3,724 forks)batch import
Hacktoberfestadd codenew algorithm

Repository metrics

Stars
 (13,462 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Given rectangles with heights and start and end points, find their union. Will add a sweep algorithm based approach in cpp by today evening.

PS they all share one axis i.e stacked along the x axis for e.g..

Contributor guide