Skip to content

Create keyFinder.js#78

Merged
the-codingninja merged 5 commits into
TheAlgorithms:masterfrom
winsonrich:patch-4
Oct 30, 2018
Merged

Create keyFinder.js#78
the-codingninja merged 5 commits into
TheAlgorithms:masterfrom
winsonrich:patch-4

Conversation

@winsonrich

Copy link
Copy Markdown
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!

@the-codingninja the-codingninja left a comment

Copy link
Copy Markdown
Member

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

@winsonrich winsonrich left a comment

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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

@winsonrich winsonrich left a comment

Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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

Comment thread Ciphers/keyFinder.js Outdated

@the-codingninja the-codingninja left a comment

Copy link
Copy Markdown
Member

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
Copy Markdown
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

@winsonrich winsonrich left a comment

Copy link
Copy Markdown
Contributor Author

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

@the-codingninja the-codingninja left a comment

Copy link
Copy Markdown
Member

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

@winsonrich winsonrich left a comment

Copy link
Copy Markdown
Contributor Author

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

@the-codingninja the-codingninja merged commit 9cabd46 into TheAlgorithms:master Oct 30, 2018
@the-codingninja

Copy link
Copy Markdown
Member

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