스킬트리 (Level 2)

정은경·2020년 10월 18일
0

1. 문제

2. 나의 풀이

def solution(skill, skill_trees):
    count = 0
    for tree in skill_trees:
        temp = []
        for s in skill:
            if s in tree:
                temp.append(tree.index(s))
            else:
                temp.append(100)
        sorted_temp = sorted(temp)
        print(temp, sorted_temp)
        if temp == sorted_temp:
            count +=1
    return count

3. 남의 풀이



4. 느낀 점

profile
#의식의흐름 #순간순간 #생각의스냅샷

0개의 댓글