-
Notifications
You must be signed in to change notification settings - Fork 40
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
Faiza #17
base: master
Are you sure you want to change the base?
Faiza #17
Conversation
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.
Thanks for getting this in. You hit the learning goals here Remember that building a hash does involve increasing space complexity.
# Space Complexity: ? | ||
|
||
# Time Complexity: O(n) because it will need to check every item in the array | ||
# Space Complexity: O(1) |
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.
Since you're building a hash, the space complexity is O(n)
# Time Complexity: ? | ||
# Space Complexity: ? | ||
# Time Complexity: O(n) because it will have to loop throught the entire array | ||
# Space Complexity: O(1) |
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.
What about the space complexity of the hash?
Hash Table Practice
Congratulations! You're submitting your assignment!
Comprehension Questions