Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Solution for Github-Externship Assignment #178

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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