-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
P174. 풀이 2 반환형 #32
Comments
네, 좋은 지적입니다. |
likejazz
added a commit
that referenced
this issue
Sep 19, 2020
good comments, good guys |
@likejazz 174번 return 값을 edit) 생각을 해보니 리스트 안에 같은 숫자가 있을 경우에 대한 예외를 처리하지 못할 것 같습니다. [i, lst[i + 1 :].index(complement) + (i + 1)]으로 수정합니다. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
P173의 "두 수의 합" 문제의 리트코드에서 제시하는 함수의 반환형은 List[int] 입니다.
하지만 해당 문제의 풀이2, 풀이3, 풀이 5들은 다음과 같이 Tuple[int] 를 반환하고 있습니다.
풀이 1, 풀이4의 경우는 리트코드에서 제시하는 바와 같이 List[int] 을 반환하고 있습니다.
이전에 올라왔던 이슈 중 그룹 애너그램 문제과 동일한 이슈인 것 같습니다.
이 문제 말고도 일부 문제에서 List를 요구하는데 Tuple을 반환하는 경우가 빈번한 것 같습니다.
큰 문제는 아니지만, 리트코드가 제시하는 타입에 맞추는 것이 책의 전체 일관성이나,
제출에도 좋은 것 같아서 이슈를 작성하여 봅니다.
The text was updated successfully, but these errors were encountered: