from methods import print_matrix

# from chapter_1.q1 import is_unique, is_unique_no_ds

# test = "abAc"
# print(is_unique(test))
# print(is_unique_no_ds(test))


# from chapter_1.q2 import check_permutation
#
# print(check_permutation("abcc", "cdba"))
# print(check_permutation("bnvghj", "jhgnbv"))


# from chapter_1.q3 import urlify
#
# print(urlify("Mr     John Smith   "))


# from chapter_1.q4 import is_palindrome_permutation
#
# print(is_palindrome_permutation("tactccoa"))
# print(is_palindrome_permutation("tactcoa"))


# from chapter_1.q5 import one_away
#
# print(one_away("pale", "ple"))
# print(one_away("pales", "pale"))
# print(one_away("pale", "pake"))
# print(one_away("pale", "bake"))


# from chapter_1.q6 import string_compression
#
# print(string_compression("aabcccccaaa"))
# print(string_compression("aaa"))


# from chapter_1.q7 import rotate_matrix, rotate_matrix_in_place
#
# matrix = [[1, 2, 3, 4], [5, 6, 7, 8], [9, 10, 11, 12], [13, 14, 15, 16]]
#
# print(rotate_matrix(matrix))
# rotate_matrix_in_place(matrix)
# print(matrix)


# from chapter_1.q8 import zero_matrix
#
# matrix = [[1, 2, 3, 4, 90],
#           [5, 0, 7, 8, 91],
#           [9, 10, 11, 12, 92],
#           [13, 14, 15, 16, 93]]
#
# print_matrix(matrix)
# print()
# print_matrix(zero_matrix(matrix))
