Skip to content

Conversation

@jamestglh
Copy link
Owner

No description provided.

string firstHalf = word.Substring(0, firstVowelIndex);
int secondHalfLength = wordLength - firstVowelIndex;
string secondHalf = word.Substring(firstVowelIndex, secondHalfLength);
if (firstVowelIndex == 0)
Copy link

Choose a reason for hiding this comment

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

you should handle the case where the word has no vowel. this currently throws an exception when it hits that case.

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.

3 participants