링크
내 풀이(O)
def solution(t, p):
num_list = [t[num: num + len(p)] for num in range(len(t) - len(p) + 1)]
return len([num for num in num_list if int …
def solution(t, p):
num_list = [t[num: num + len(p)] for num in range(len(t) - len(p) + 1)]
return len([num for num in num_list if int …
def solution(cards1, cards2, goal):
answer = ''
for target in goal:
if len(cards1) > 0 and target == cards1[0]:
cards1.pop(0)
elif …