Skip to content

Cracking Shakespeare#79

Open
KengiCo wants to merge 3 commits into
tomorrowdevs-projects:mainfrom
KengiCo:cracking-shakespear
Open

Cracking Shakespeare#79
KengiCo wants to merge 3 commits into
tomorrowdevs-projects:mainfrom
KengiCo:cracking-shakespear

Conversation

@KengiCo

@KengiCo KengiCo commented Nov 1, 2021

Copy link
Copy Markdown
Contributor

No description provided.

KengiCo and others added 3 commits October 24, 2021 14:52
…life handling negative array indexes and has some better formatting
…frequent letter of an encrypted text and find the key for decrypting it by confronting it with the most frequent letter that appears in english
@KengiCo

KengiCo commented Nov 1, 2021

Copy link
Copy Markdown
Contributor Author

not a very refined solution but it works nonetheless.
Takes the most frequent letter of an encrypted text and find the key for decrypting it by confronting it with the most frequent letter that appears in english

@@ -0,0 +1,58 @@
let alphabet = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z",];

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Use a constant when you're not willing to re-instantiate the variable values

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.

2 participants