Skip to content

Conversation

@KengiCo
Copy link
Contributor

@KengiCo KengiCo commented Nov 1, 2021

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
Copy link
Contributor Author

KengiCo commented Nov 1, 2021

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