Company: PhonePe
Difficulty: medium
BloxMaxxing Welcome, block enthusiasts, to BloxMaxxing, the ultimate stacking extravaganza! Here, you'll test your strategic skills by stacking the maximum number of blocks on top of each other. But these aren't your average blocks! The Blocks: There are a variety of blocks available ( n in total), each with a base height value ( c i for the i-th block), the area of all the blocks are the same. Each block has a unique "Stability Enhancer" (fancy name for a special ability). When activated, it reduces the block's height by d i (for the i-th block), allowing you to potentially stack higher! The Challenge: You can only use each block once. To activate a block's Stability Enhancer, you must meet a specific condition. For some blocks (i >= 2), you need to have already used the x i -th block's Enhancer. This might require activating even more Enhancers based on the dependency chain. The Goal: Stack the maximum number of blocks on top of each other within the designated building height limit