Skip to content

Conversation

@rlawngP91
Copy link
Collaborator

No description provided.

@kth990303 kth990303 requested review from YOOBINNOH and lomuto July 5, 2022 04:35
Copy link
Collaborator

Choose a reason for hiding this comment

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

str1의 길이가 n, str2의 길이가 k 일 때
동일 로직에 대해 O(nk) 가 아니라 O(n + k) 로 해결할 수 있는 방법에 대해 고민해보시면 좋을 것 같습니다

Copy link
Collaborator

@lomuto lomuto Jul 5, 2022

Choose a reason for hiding this comment

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

이 두 if 문을 (35, 36번째 줄) 하나의 return 문으로 축약할 수 있는 방법에 대해 고민해보시면 좋을 것 같습니다

Copy link
Collaborator

Choose a reason for hiding this comment

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

참고로 이 질문은 제가 라이브 코딩테스트 면접에서 받았던 질문이기도 합니다 :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

여기있는 대부분의 if 문들도 하나의 return 문으로 어떻게 줄일 수 있는지 고민해보시면 좋을 것 같아요

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.

2 participants