Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 799. Champagne Tower
Given poured cups into the top of a triangular glass tower where each glass holds 1 cup and any excess splits equally to the two glasses below, determine how full the (query_row, query_glass) glass is after the flow settles. The algorithmic challenge is to propagate overflow down the triangle (Pascal-like distribution) efficiently up to the queried row (≤100) and cap each glass at 1.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.