-
Notifications
You must be signed in to change notification settings - Fork 120
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
[kayden] Week 02 Solutions #355
Conversation
kjb512
commented
Aug 21, 2024
•
edited
Loading
edited
- Valid Anagram #218
- Counting Bits #233
- Encode and Decode Strings #238
- Construct Binary Tree From Preorder And Inorder Traversal #253
- Decode Ways #268
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Encode and Decode Strings 문제에 대한 솔루션이 좀 이상한 것 같은데, 일단 마감 시간이 다 되서 PR은 승인해드려요. 제 코멘트에 대해서 생각해보시고 다음 주 PR에 반영해주시면 좋을 것 같습니다.
res = "" | ||
for str in strs: | ||
size = len(str) | ||
res += str(size) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
str
이 문자열인데 어떻게 호출하죠?
while idx < limit: | ||
num = str[idx] | ||
text = "" | ||
for _ in range(num): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
range()
함수에 문자열을 넘길 수도 있나요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오류가 많았네요.. 다음주에 수정해서 같이 올리겠습니다!