Google L3 Onsite Interview Question

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2025-01-10Added By Anonymous
Source: Link
🧭 Experience: unknown ✅ Outcome: unknown 💰 Compensation: unknown 📍 Location: unknown 🏢 Company: Google 🎓 Education: unknown 🎁 Benefits: unknown 📅 Offer Date: unknown

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