Software Engineer Net Developer Interview Questions

8,182 software engineer net developer interview questions shared by candidates

You are given an integer amount representing a sum of money. You have an infinite supply of coins of denominations 2, 5, and 10. Write a function that returns a tuple of three integers (a, b, c), where: a is the number of 10-coin pieces, b is the number of 5-coin pieces, c is the number of 2-coin pieces, such that the sum of these coins is exactly equal to amount, and the total number of coins (a + b + c) is minimized. If it is not possible to make up the amount with these coins, return (-1, -1, -1)
avatar

.NET Developer

Interviewed at Société Générale

3.7
Feb 11, 2026

You are given an integer amount representing a sum of money. You have an infinite supply of coins of denominations 2, 5, and 10. Write a function that returns a tuple of three integers (a, b, c), where: a is the number of 10-coin pieces, b is the number of 5-coin pieces, c is the number of 2-coin pieces, such that the sum of these coins is exactly equal to amount, and the total number of coins (a + b + c) is minimized. If it is not possible to make up the amount with these coins, return (-1, -1, -1)

Viewing 2661 - 2670 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 8,182 interview questions and reports from Software engineer net developer interviews. Prepare for your interview. Get hired. Love your job.