-
Notifications
You must be signed in to change notification settings - Fork 49
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
Leaves - Cloudy #50
base: master
Are you sure you want to change the base?
Leaves - Cloudy #50
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.
Nice work Cloudy, take a look at my comments and let me know where you have questions. You hit the learning goals here. Well done!
@@ -1,13 +1,43 @@ | |||
|
|||
# Time Complexity: ? | |||
# Space Complexity: ? | |||
# Time Complexity: OofNsquared bc delete_at takes up ALOT of space (so says my tutor) |
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.
Not space, but time, I understand what you're getting at.
# Time Complexity: ? | ||
# Space Complexity: ? | ||
#hi chris, this one boggled my mind, dont mind my notes. | ||
# Time Complexity: OofNsquared *maybe? |
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.
That's a good idea, it's O(n * m) where n is the number of strings and m is the length of the strings.
# Space Complexity: ? | ||
#hi chris, this one boggled my mind, dont mind my notes. | ||
# Time Complexity: OofNsquared *maybe? | ||
# Space Complexity: OofN |
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.
It's probably simpler just to put O(n)
ok?
You're right where n is the number of letters in a string.
No description provided.