Algorithm/ํ๋ก๊ทธ๋๋จธ์ค
[ํ๋ก๊ทธ๋๋จธ์ค] ํํ - Python
https://programmers.co.kr/learn/courses/30/lessons/64065 ์ฝ๋ฉํ
์คํธ ์ฐ์ต - ํํ "{{2},{2,1},{2,1,3},{2,1,3,4}}" [2, 1, 3, 4] "{{1,2,3},{2,1},{1,2,4,3},{2}}" [2, 1, 3, 4] "{{4,2,3},{3},{2,3,4,1},{2,3}}" [3, 2, 4, 1] programmers.co.kr def solution(s): answer = [] s = s[2:-2] s = s.split("},{") s.sort(key = len) #๊ธธ์ด๊ธฐ์ค์ผ๋ก sort() for ss in s: sss = ss.split(',') for j in sss: if int(j) not in answer: answer.ap..