Report question

Question: Algorithm to merge adjacent rectangles into polygon