You're given three integers a, b, c.
Now perform either of two operations on them any number of times:
1. Choose two integers from a,b,c and increase them by 1
2. Choose one integer from a,b,c and increase by 2
Your task is to minimise the number of operations required to make all of them equal.
logic of this coding problem.
Answers
Answered by
0
Answer:
You're given three integers a, b, c.
Now perform either of two operations on them any number of times:
1. Choose two integers from a,b,c and increase them by 1
2. Choose one integer from a,b,c and increase by 2
Your task is to minimise the number of operations required to make all of them equal.
logic of this coding problem.
Similar questions