Skip to content

Update keyFinder.js #80

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

Merged
merged 5 commits into from
Mar 21, 2019
Merged

Update keyFinder.js #80

merged 5 commits into from
Mar 21, 2019

Conversation

winsonrich
Copy link
Contributor

  1. modified used the suitable identifier for the variables
  2. leave the loop when a key is match and found to increase the speed of searching in this stage of development

modified used the suitable identifier for the variables
@ParthS007
Copy link
Member

This pull request introduces 1 alert when merging 6c894a2 into 9cabd46 - view on LGTM.com

new alerts:

  • 1 for Useless assignment to local variable

Comment posted by LGTM.com

1. modified the identifiers and used the suitable identifiers for the variables
2. leave the loop when a key is match and found to increase the speed of searching in this stage of development
3. return the key number if founded, return 0 if found nothing
Copy link
Contributor Author

@winsonrich winsonrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. modified the identifiers and used the suitable identifiers for the variables
  2. leave the loop when a key is match and found to increase the speed of searching in this stage of development
  3. return the key number if founded, return 0 if found nothing

@ParthS007
Copy link
Member

This pull request introduces 1 alert when merging a93d5cf into 9cabd46 - view on LGTM.com

new alerts:

  • 1 for Useless assignment to local variable

Comment posted by LGTM.com

a sub-function is used to assist the keyfinder to find the key
Copy link
Contributor Author

@winsonrich winsonrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a sub-function is used to assist the keyfinder to find the key

@ParthS007
Copy link
Member

This pull request introduces 1 alert when merging fed5d51 into 9cabd46 - view on LGTM.com

new alerts:

  • 1 for Useless assignment to local variable

Comment posted by LGTM.com

Finally, there are several changes in the function keyFinder(str) that make it works well
Copy link
Contributor Author

@winsonrich winsonrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The keyFinder() has already tested and works well.

Add some key words to the wordbank to increase the chance of the matching.
Copy link
Contributor Author

@winsonrich winsonrich left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. The keyFinder() has already tested and works well.
  2. Add some key words to the wordbank to increase the chance of the matching.

@ms10398 ms10398 merged commit 2450f24 into TheAlgorithms:master Mar 21, 2019
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.

4 participants