Skip to content

Comments

week1 20301 반전요세푸스 정재홍#41

Open
CHOCOCHANEL wants to merge 4 commits intoManduTheCat:masterfrom
CHOCOCHANEL:test20301
Open

week1 20301 반전요세푸스 정재홍#41
CHOCOCHANEL wants to merge 4 commits intoManduTheCat:masterfrom
CHOCOCHANEL:test20301

Conversation

@CHOCOCHANEL
Copy link
Collaborator

from collections import deque

deque 모듈을 활용하여
요세푸스 문제와 비슷하게 풀었습니다.

주요 아이디어는 flag='right'를 이용했다는 점과
killed 리스트의 길이를 체크하며,
m명의 인원이 죽었을 때 flag를 바꾸어준 점입니다.

@CHOCOCHANEL CHOCOCHANEL changed the title 20301 반전요세푸스 정재홍 week1 20301 반전요세푸스 정재홍 Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant