Skip to content

Conversation

@kumarSuraj-bit
Copy link

Algorithm :

        step 1: finding coefficients A, B, C, and D from the coming equation.

        step 2: then find coefficient In which '?' is present, assume that a variable 
                and then calculate that variable by simple math.

        step 3: now compare that calculated variable to the given equation coefficient which 
                contain '?' by our defined method isPossible() it will give result whether 
                our solution is possible or not.

        step 4: If the solution is possible for a given equation, we return that digit which is 
                missing, otherwise, we return -1.

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