Skip to content

Update solution.js#174

Open
azmuth13 wants to merge 1 commit intosymblai:mainfrom
azmuth13:main
Open

Update solution.js#174
azmuth13 wants to merge 1 commit intosymblai:mainfrom
azmuth13:main

Conversation

@azmuth13
Copy link
Copy Markdown

@azmuth13 azmuth13 commented Dec 19, 2021

This Pull request resolves: #168
Approach:

Split the string to get an array of four strings i.e. A, B, C, D.
If any one of them contains ?, then for each position check whether the required number and given number match or not (excluding the ? position).
If they match, then return the missing digit in the given number (position of ? in given number).

Output
Annotation 2021-12-19 205116

Approach:

Split the string to get an array of four strings i.e. A, B, C, D.
If any one of them contains ?, then for each position check whether the required number and given number match or not (excluding the ? position).
If they match, then return the missing digit in the given number (position of ? in given number).
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.

Github-Externship-Assignment - Suraj Kumar

1 participant