<gh_stars>0
# https://programmers.co.kr/learn/courses/30/lessons/12906
def solution(arr):
    answer = []
    for num in arr:
        if [num] != answer[-1:]:
            answer.append(num)

    return answer

# https://programmers.co.kr/learn/courses/30/lessons/12906
def solution(arr):
    answer = []
    for num in arr:
        if [num] != answer[-1:]:
            answer.append(num)

    return answer
# https://programmers.co.kr/learn/courses/30/lessons/12906