Skip to content

Fix: typo in multiple files. #149

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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