Skip to content
Discussion options

You must be logged in to vote

ingredient = [1, 1, 1, 2, 3, 1, 2, 3, 1, 2, 3, 1]를 넣었을 경우, 해당 코드로는 2가 나오게 됩니다.
아래부터, '빵 – 야채 – 고기 - 빵' = '1, 2, 3, 1'일 경우에만 햄버거를 만든다고 되어있으므로, 3을 반환해야 합니다.
신선한 풀이라 재밌게 봤습니다~

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by LearningnRunning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants