here is the link for a problem on hackerearth.
i have solved the question and i think my answer is correct and should pass all the test cases but it is failing some test cases.please look for my solution.here is the link for my solution on coding blocks ide.
Hackerearth divisibilty
- You just need to check the last number’s lasst digit. If its 0 then its ok.
- For above point, minimium elements in array must be 2
- in your code, you are overflowing the answer.