InterviewDB Question

Transaction Fee: Calculate the Net Amount After Applying Tiered Transaction Fees

Question Details

Problem A payment platform charges tiered transaction fees. Given a transaction amount and a fee schedule, compute the net amount received after fees. Fee schedule: a list of (up_to_amount, fee_rate) tiers sorted ascending. The fee rate applies to th…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Phone