크레인 인형뽑기 게임2 프로그래머스 - (2019 카카오 개발자 겨울 인턴십) 크레인 인형뽑기 게임 (Java) https://programmers.co.kr/learn/courses/30/lessons/64061 코딩테스트 연습 - 크레인 인형뽑기 게임 [[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 import java.util.Stack; class Solution { public int solution(int[][] board, int[] moves) { int answer = 0; Stack bucket = new Stack(); for (int col : moves){ int colIndex = col - 1; for (int rowIndex = 0; rowIndex < bo.. 2020. 11. 21. 프로그래머스 - (2019 카카오 개발자 겨울 인턴십) 크레인 인형뽑기 게임(Python3) https://programmers.co.kr/learn/courses/30/lessons/64061 코딩테스트 연습 - 크레인 인형뽑기 게임 [[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 """ 2019 카카오 개발자 겨울 인턴십 크레인 인형뽑기 게임 """ def solution(board, moves): answer = 0 basket = [] total_floor = len(board) for x_position in moves: x_position_index = x_position - 1 for y_position_index in range(total_floor):.. 2020. 8. 1. 이전 1 다음