Skip to content

Conversation

@dev-amrit460
Copy link

@dev-amrit460 dev-amrit460 commented Dec 19, 2021

Algorithm:

           Step1: Finding A,B,C,D from the equation given.

           Step2: using a function called findCoeff() to find in which coefficient, ? is present.

           Step3: Considering the coefficient which contain ? as a veriable, we found the actual value 
                       for that veriable using simple math.

           Step4: If length of calculated value and initially provided value is not same then returning -1 
                       else returning the digit of calculated value at index of ? in initially given value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant