25Validate balanced parentheses/brackets, and explain the stack pattern.▼easy★ EssentialGoogleMetaAmazon2 replies◆ premiumA warm-up that tests for the stack instinct. Interviewers look for recognizing that last-opened-first-closed maps onto a stack, plus handling the edge cases (leftover opens, early close). The pattern follows.Open full answer →
111Explain propensity score methods: matching, weighting (IPW), and the overlap assumption. When do they fail?▼hardMetaAmazonUber2 replies◆ premiumPropensity scores promise to imitate an experiment from observational data. The signal is knowing what they can and cannot fix, the overlap trap, and why IPW blows up. Here is the answer that sets careful candidates apart.Open full answer →