Hi, Could you please look into the logic of my java code and help me find what's wrong? It's failing for larger inputs.
I have created a program to find the difference between two arrays(assuming each array as a number). Assumptions: 1)each array is a number taking the value in the last position of the array as the one's digit of the number and last but one digit as 10's position of the number, so on. 2)2nd array/number is always greater than(or equal to) the 1st number. 3)Each index of the array contains only one digit between 0 to 9. My code: https://code.sololearn.com/cCC1WhL84v2j You can find the complete question with answer here(I am just looking to find the flaw in my code) : https://www.pepcoding.com/resources/online-java-foundation/function-and-arrays/difference_of_two_arrays/topic (You can ask me in your answer if you can't understand any part of my code)