문제 설명 및 제한조건

나의 풀이

def solution(my_string):
    answer = ''
    for i in range(len(my_string)):
        if my_string[i] in answer:
            continue
        else:
            answer += my_string[i]
    return answer
profile
hello

0개의 댓글

Powered by GraphCDN, the GraphQL CDN