[프로그래머스 programmers] 크레인 인형뽑기 게임
programmers.co.kr/learn/courses/30/lessons/64061?language=python3 코딩테스트 연습 - 크레인 인형뽑기 게임 [[0,0,0,0,0],[0,0,1,0,3],[0,2,5,0,1],[4,2,4,4,2],[3,5,1,3,1]] [1,5,3,5,1,2,1,4] 4 programmers.co.kr def solution(board, moves): stack = [] for move in moves: place = move-1 catch = 0 for i in range(len(board)): if board[i][place]!=0: catch = board[i][place] board[i][place]=0 break if catch !=0: stack.append(..
2021. 4. 25.