-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
Conversation
winsonrich
commented
Oct 31, 2018
- modified used the suitable identifier for the variables
- 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
This pull request introduces 1 alert when merging 6c894a2 into 9cabd46 - view on LGTM.com new alerts:
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- modified the identifiers and used the suitable identifiers for the variables
- leave the loop when a key is match and found to increase the speed of searching in this stage of development
- return the key number if founded, return 0 if found nothing
This pull request introduces 1 alert when merging a93d5cf into 9cabd46 - view on LGTM.com new alerts:
Comment posted by LGTM.com |
a sub-function is used to assist the keyfinder to find the key
There was a problem hiding this 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
This pull request introduces 1 alert when merging fed5d51 into 9cabd46 - view on LGTM.com new alerts:
Comment posted by LGTM.com |
Finally, there are several changes in the function keyFinder(str) that make it works well
There was a problem hiding this 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.
There was a problem hiding this 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.