[프로그래머스]햄버거 만들기 #3
Answered
by
starryboram
LearningnRunning
asked this question in
Q&A
먼저 문자열로 변환했습니다. 테스트케이스 3~6, 9, 12 실패로 나옵니다. |
Answered by
starryboram
Dec 26, 2022
Replies: 1 comment
|
ingredient = [1, 1, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1]를 넣었을 경우, 해당 코드로는 2가 나오게 됩니다. |
0 replies
Answer selected by
LearningnRunning
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ingredient = [1, 1, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1]를 넣었을 경우, 해당 코드로는 2가 나오게 됩니다.
아래부터, '빵 – 야채 – 고기 - 빵' = '1, 2, 3, 1'일 경우에만 햄버거를 만든다고 되어있으므로, 3을 반환해야 합니다.
신선한 풀이라 재밌게 봤습니다~