Skip to content

Conversation

@s0n9h2
Copy link
Member

@s0n9h2 s0n9h2 commented Oct 10, 2022

문제 번호

리뷰어에게

Puyo Puyo랑 모음사전은 @blcklamb 님이,
문자열 폭발은 @Malza0408 님이 해주시면 됩니다...ㅎㅎ
제가 브랜치도 나눠놓고 이전 CR을 제 때 생성 안해서 이렇게 됐네요...
잘 부탁드립니다~!!

@s0n9h2 s0n9h2 requested review from Malza0408 and blcklamb October 10, 2022 15:33
@s0n9h2 s0n9h2 self-assigned this Oct 10, 2022
@s0n9h2 s0n9h2 added the 공통문제 주차별 함께 풀어야 할 문제 label Oct 10, 2022
@s0n9h2 s0n9h2 changed the title [CR] 10월 3주차 [CR] 10월 2, 3주차 Oct 10, 2022
Copy link
Contributor

@blcklamb blcklamb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

채정 => 송희
문자열 폭발💣 수고하셨습니다!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

조건문 처리할 때 처음에 최대한 조건을 줄여야지 시간이 적게 나올 것 같은데,
송희님께서 하신 부분이 가장 적게 나오네요!(536ms) 흥미로운 지점입니다.

if tmp[-1] == bomb_str[-1]:
            if len(tmp) >= len(bomb_str) and tmp[-len(bomb_str):] == bomb_str:

=> 548ms

if tmp[-1] == bomb_str[-1]:
            if len(tmp) >= len(bomb_str):
                if tmp[-len(bomb_str):] == bomb_str:

=> 580ms

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

조건문 처리 외에 나머지는 저와 거의 동일합니다!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

공통문제 주차별 함께 풀어야 할 문제

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants