Search
⌘K
Get Premium
Leetcode 2806. Account Balance After Rounded Purchase
Given a purchaseAmount (0–100), round it to the nearest multiple of 10 (ties of 5 round up) and subtract that roundedAmount from a starting balance of 100; return the remaining balance.
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.