Beta
The Good Old Pig Latin : Reversed!
26Parix
Loading description...
Puzzles
Games
Fundamentals
Strings
View
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Spoiler
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
-
-
Your rendered github-flavored markdown will appear here.
-
Label this discussion...
-
No Label
Keep the comment unlabeled if none of the below applies.
-
Issue
Use the issue label when reporting problems with the kata.
Be sure to explain the problem clearly and include the steps to reproduce. -
Suggestion
Use the suggestion label if you have feedback on how this kata can be improved.
-
Question
Use the question label if you have questions and/or need help solving the kata.
Don't forget to mention the language you're using, and mark as having spoiler if you include your solution.
-
No Label
- Cancel
Commenting is not allowed on this discussion
You cannot view this solution
There is no solution to show
Please sign in or sign up to leave a comment.
Your random testcase sometimes generates some invlid strings that not ending with
ay
. Is this your wanted case? ;-)Don't simplely delete last two chars from the end of string :P
I think this should be an issue, because you haven't say anything about this in the description.
Another issue is, you also not tell us that the result should sorted.
This comment has been hidden.
Could be "rschEe", "schEer", "chEers" or "hEersc". We have no way to know.
And the whole thing with the
Array
result really should be mentioned in the description.Thanks for the feedback. I added more lines to the description. In the case of "Eerschay", as it ends with "ay", first it should be checked if it has vowel before "h" or not. If not possibilities are 2. Either 2 consonants moved to the end or 1. The result array should contain both those possibilities.
Would "Scheer" become "Heerscay" ? Or, actual existing word, would "String" become "Ringstay" ?
I fail to see why starting consonants, to be moved to the back, would be arbitrarily limited to 2.
Not my Pig Latin.
This comment has been hidden.
If you tag them as spoilers, I can't see them ..
I thought you already finished it.
How are we to know if "Ohoyway" should translate back to "Wohoy" or to "Ohoy" ?
(Please note I have only read the description and not looked at anything else. If this is answered somewhere else, your description is incomplete.)
Your description is incomplete, but never mind. You have bigger problems.
Actually there is noway to know for sure, since there is no thematic or semantic context. So the result array should contain both.