-
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
[환미니니] WEEK 2 Solution #360
Conversation
JEONGHWANMIN
commented
Aug 23, 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.
고생 많으셨습니다! 질문 2개 남겼지만 PR 병합하시는데는 문제되지 않을 것 같습니다.
@@ -0,0 +1,14 @@ | |||
// 시간복잡도: O(n2) | |||
// 공간복잡도: O(n) |
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.
혹시 배열을 슬라이싱하는데 들어가는 메모리를 고려하셨을까요?
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.
이 부분은 헷갈려서 다른 분 시간복잡도를 참고했습니다.
@@ -0,0 +1,28 @@ | |||
// 시간복잡도: O(n) | |||
// 공간복잡도: O(k) |
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.
k
가 무엇을 의미하나요?
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.
저장되는 문자열 개수를 뜻했는데 어처피 문자는 정해져있으니 O(1)이 될 수도 있겠네요..!