Search
⌘K

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.

Comments

Your account is free and you can post anonymously if you choose.