1. typo fix {playfair_cipher.py, AVL.py}

2. Corrected Logic {AVL.py, 104-107}
3. Removed unnecessary semicolons {BellmanFord.py, Dijkstra.py}
This commit is contained in:
ashu01
2017-12-31 14:30:31 +05:30
parent a033150426
commit 4fb978cf58
4 changed files with 21 additions and 21 deletions

View File

@@ -13,8 +13,8 @@ def chunker(seq, size):
def prepare_input(dirty):
"""
Prepare the plaintext by uppcasing it
and seperating repeated letters with X's
Prepare the plaintext by up-casing it
and separating repeated letters with X's
"""
dirty = ''.join([c.upper() for c in dirty if c in string.ascii_letters])
@@ -38,7 +38,7 @@ def prepare_input(dirty):
def generate_table(key):
# I and J are used interchangably to allow
# I and J are used interchangeably to allow
# us to use a 5x5 table (25 letters)
alphabet = "ABCDEFGHIKLMNOPQRSTUVWXYZ"
# we're using a list instead of a '2d' array because it makes the math