Google L3 Onsite Interview Question
Anonymous User
470

Hey Leetcoders, I had this amazing question given during my onsite interview how this can be solved ???

Given a list of points where each point represents a position of cake in the table [ x, y, l]
x - represents x co-ordinate
y - represents y co-ordinate
l - represents length and height of the cake starting from that (x,y) points.

All are decimals including the x and y, Find a horizontal line(fraction) such that line above and below have the equal portion of cakes in the table ???

Comments (5)