Skip to content

Commit

Permalink
Fix: typo in multiple files.
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleScharnhorst committed Oct 7, 2017
1 parent 3ecb193 commit 014786e
Show file tree
Hide file tree
Showing 13 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion dynamic_programming/fibonacci.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get(self, sequence_no=None):
import sys

print("\n********* Fibonacci Series Using Dynamic Programming ************\n")
# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
# otherwise 2.x's input builtin function is too "smart"
if sys.version_info.major < 3:
input_function = raw_input
Expand Down
2 changes: 1 addition & 1 deletion searches/binary_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def __assert_sorted(collection):

if __name__ == '__main__':
import sys
# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
# otherwise 2.x's input builtin function is too "smart"
if sys.version_info.major < 3:
input_function = raw_input
Expand Down
2 changes: 1 addition & 1 deletion searches/linear_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def linear_search(sequence, target):
if __name__ == '__main__':
import sys

# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
# otherwise 2.x's input builtin function is too "smart"
if sys.version_info.major < 3:
input_function = raw_input
Expand Down
2 changes: 1 addition & 1 deletion sorts/bogosort.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def isSorted(collection):
if __name__ == '__main__':
import sys

# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
# otherwise 2.x's input builtin function is too "smart"
if sys.version_info.major < 3:
input_function = raw_input
Expand Down
2 changes: 1 addition & 1 deletion sorts/bubble_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def bubble_sort(collection):

if __name__ == '__main__':
import sys
# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
# otherwise 2.x's input builtin function is too "smart"
if sys.version_info.major < 3:
input_function = raw_input
Expand Down
2 changes: 1 addition & 1 deletion sorts/cocktail_shaker_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def cocktail_shaker_sort(unsorted):
if __name__ == '__main__':
import sys

# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
# otherwise 2.x's input builtin function is too "smart"
if sys.version_info.major < 3:
input_function = raw_input
Expand Down
2 changes: 1 addition & 1 deletion sorts/gnome_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def gnome_sort(unsorted):
if __name__ == '__main__':
import sys

# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
# otherwise 2.x's input builtin function is too "smart"
if sys.version_info.major < 3:
input_function = raw_input
Expand Down
2 changes: 1 addition & 1 deletion sorts/insertion_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def insertion_sort(collection):
if __name__ == '__main__':
import sys

# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
# otherwise 2.x's input builtin function is too "smart"
if sys.version_info.major < 3:
input_function = raw_input
Expand Down
2 changes: 1 addition & 1 deletion sorts/merge_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def merge_sort(collection):
if __name__ == '__main__':
import sys

# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
# otherwise 2.x's input builtin function is too "smart"
if sys.version_info.major < 3:
input_function = raw_input
Expand Down
2 changes: 1 addition & 1 deletion sorts/quick_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def quick_sort(ARRAY):
if __name__ == '__main__':
import sys

# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
# otherwise 2.x's input builtin function is too "smart"
if sys.version_info.major < 3:
input_function = raw_input
Expand Down
2 changes: 1 addition & 1 deletion sorts/selection_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def selection_sort(collection):

if __name__ == '__main__':
import sys
# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
# otherwise 2.x's input builtin function is too "smart"
if sys.version_info.major < 3:
input_function = raw_input
Expand Down
2 changes: 1 addition & 1 deletion sorts/shell_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def shell_sort(collection):

if __name__ == '__main__':
import sys
# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
# otherwise 2.x's input builtin function is too "smart"
if sys.version_info.major < 3:
input_function = raw_input
Expand Down
2 changes: 1 addition & 1 deletion traverals/binary_tree_traversals.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def level_order(node):
import sys

print("\n********* Binary Tree Traversals ************\n")
# For python 2.x and 3.x compatibility: 3.x has not raw_input builtin
# For python 2.x and 3.x compatibility: 3.x has no raw_input builtin
# otherwise 2.x's input builtin function is too "smart"
if sys.version_info.major < 3:
input_function = raw_input
Expand Down

0 comments on commit 014786e

Please sign in to comment.