LeetCode 939. Minimum Area Rectangle

preview_player
Показать описание

Рекомендации по теме
Комментарии
Автор

Thank You <3
The Second Approach Was Very Good

ehabrafat
Автор

I was thinking about this, don't the diagonals bisect in all parallelogram and all rectangles are parallelogram but not all parallelograms are rectangles.

ShivangiSingh-wcgk
Автор

square area will also be calculated and that will come out to be minimum ?

arpitagarwal
Автор

could you explain why you use the seen set? could you make it work without a seen set? in the first solution that is, i understand why you need some sort of last_vertical line variable in the second solution

yoshi