Skip to content

Create keyFinder.js #78

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
Oct 30, 2018
Merged

Create keyFinder.js #78

merged 5 commits into from
Oct 30, 2018

Conversation

winsonrich
Copy link
Contributor

Find and retrieve the encryption key automatically
Note: This is a draft version, please help to modify, Thanks!

Find and retrieve the encryption key automatically 
Note: This is a draft version, please help to modify, Thanks!
Copy link
Member

@ms10398 ms10398 left a comment

Choose a reason for hiding this comment

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

Please make it js file instead of a file without extension

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.

Please note that the file extension is renewed to js format, thank you.

@ParthS007
Copy link
Member

This pull request introduces 1 alert when merging 5a75bca into 7b82729 - view on LGTM.com

new alerts:

  • 1 for Syntax error

Comment posted by LGTM.com

@winsonrich winsonrich changed the title Create keyFinder Create keyFinder.js Oct 27, 2018
optimized the indentation for the if statement in line 18
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.

optimize the indentation of if statement in line 18

@ParthS007
Copy link
Member

This pull request introduces 1 alert when merging e0fa99b into 7b82729 - view on LGTM.com

new alerts:

  • 1 for Syntax error

Comment posted by LGTM.com

Copy link
Member

@ms10398 ms10398 left a comment

Choose a reason for hiding this comment

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

Please see comments

some changes is made to optimize the function
@ParthS007
Copy link
Member

This pull request introduces 1 alert when merging e41ad76 into 7b82729 - view on LGTM.com

new alerts:

  • 1 for Syntax error

Comment posted by LGTM.com

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.

ES6 is used to fix such error

Copy link
Member

@ms10398 ms10398 left a comment

Choose a reason for hiding this comment

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

There is still alert raised can you check it

Made 2 changes to optimize the match results:
1. use a loop to find the next digit of wordbank element and compare with outStr's digit
2. this part need to be optimize with the calculation of the number of occurance of word's probabilities
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.

Made 2 changes to optimize the match results:

  1. use a loop to find the next digit of wordbank element and compare with outStr's digit
  2. this part need to be optimize with the calculation of the number of occurance of word's probabilities

@ms10398 ms10398 merged commit 9cabd46 into TheAlgorithms:master Oct 30, 2018
@ms10398
Copy link
Member

ms10398 commented Oct 30, 2018

I would like you to see this article for usage of let and const instead of var

https://medium.com/javascript-scene/javascript-es6-var-let-or-const-ba58b8dcde75

@winsonrich winsonrich deleted the patch-4 branch October 31, 2018 02:02
@winsonrich winsonrich restored the patch-4 branch November 5, 2018 05:52
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.

3 participants