Pergunta de entrevista da empresa Booking.com

1- (Coding test at hackerrank) Specify types of the polygons (square, rectangle, polygon). They didn't provide the number of lines, and negative numbers should be considered as polygons, and square shouldn't be considered as rectangle.

Resposta da entrevista

Sigiloso

10 de mai. de 2017

I've passed this question. but I was little confused about negative numbers.