Skip to content

Conversation

@in-formation
Copy link

Sorting & Reverse Sentence

Question Answer
Describe how Bubble Sort works
Describe how Selection Sort works
Describe how Insertion sort works
Which Sorting Algorithm has the best time complexity?

(I wasn't about to pass one of the tests but I'm not sure how to make it work...meeting with my tutor on Tuesday to discuss)

@in-formation
Copy link
Author

Hi Chris,
I reviewed the reverse_sentence problem with my tutor and re-did it.
Side note: I created a reverse(string) helper method that I made with the intentions of reversing every "word" that was identified in the sentence (after the entire sentence had been reversed the first time). But I couldn't figured out how to get it to return correctly and in place so I just rewrote the while loop that reverses the words. Could definitely be dried up.
Thanks!

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.

1 participant