Learning course: Java for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone
Feedback
In my opinion the Value 22 will become divisible by 10 in 5 turns so the answer should be 5 and not -1. Please correct me if I am worng.
Learning course: Java for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone
In my opinion the Value 22 will become divisible by 10 in 5 turns so the answer should be 5 and not -1. Please correct me if I am worng.
Hey @anubhavshri14,
After 5 turns, 22 will be multiplied 2 five times, which is 22 * 2 * 2 * 2 * 2 * 2
. This is equal to 704, which is not divisible by 10.