# Split in Half
# Given a string. Split it into two equal parts. Swap these parts and return the result.
# If the string has odd characters, the first part should be one character greater than the second part.
# Example: string = 'bbbbbcaaaaa'. Result = ‘aaaaabbbbbc’.

# def split_in_half(s):
#     length = len(s)
#     half = length // 2
#     add = 0
#     if length % 2:
#         add = 1
#     left = s[:half + add]
#     right = s[half + add:]
#     return right + left
#
# print(split_in_half('bbbbbcaaaaa'))
# print(split_in_half('aaaaabbbbbc'))

# Unique Characters in String
# Given a string, determine if it consists of all unique characters.
# For example, the string 'abcde' has all unique characters and should return True.
# The string 'aabcde' contains duplicate characters and should return False.


# def unique(s):
#     chars = set()
#
#     for char in s:
#         if char in chars:
#             return False
#         else:
#             chars.add(char)
#
#     return True
#
# print(unique("qwerty"))
# print(unique("asdasd"))


