Skip to content
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

Reverse Sentence - Hannah #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hertweckhr1
Copy link

Time complexity: n^2
-nested loop within reverse words
Space Complexity: o(n)
-number of variables remain the same as array gets larger, but in reverse words, the new_string variable will get larger as my_words string increases.

return my_string
end

def reverse_words(my_words)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've the same comments as the ones I added to Ada-C10/reverse_words#24 (comment)

And accordingly, you may want to revisit the algorithm and the complexities for this assignment.

@shrutivanw
Copy link

I've the same comments as the ones I added to Ada-C10/reverse_words#24 (comment) And accordingly, you may want to revisit the algorithm and the complexities for this assignment.

The rest looks good.

@shrutivanw
Copy link

I've the same comments as the ones I added to Ada-C10/reverse_words#24 (comment)
And accordingly, you may want to revisit the algorithm and the complexities for this assignment.

The rest looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants