Calculate Amount Paid in Taxes

Problem overview from a real Snowflake interview:

You are given a 0-indexed 2D integer array brackets where brackets[i] = [upperi, percenti] means that the ith tax bracket has an upper bound of upperi and is taxed at a rate of percenti.

Check more interview questions and experiences about Snowflake

Please log in to view interview details