7 kyu
Unscrambled eggs
2,137 of 4,215JMurphyWeb
Loading description...
Fundamentals
View
Career Accelerator
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.
No need to use regex to complete this kata
This comment has been hidden.
Description should be language-agnostic
This comment has been hidden.
you should be returning your new string after the replace() operation, not printing it.
C# noob here. Thanks for the easy Kata jajaja.
The description is that all eggs after consonants are supposed to be removed. It would make sense to have a few test with a vowel (or another character) followed by 'egg'. 'neggo egg' => 'no egg'
strong suggestion ~ I updated my recent translation for this! thanks
After getting busted up by another kata today, this kata was eggsactly what the Dr ordered.
C Translation (author inactive).
Missed a huge opportunity to call them "reggular eggspressions" in description :(
Initial solution in C# has unnecessary imports
The parameter type is also missing
Please use new python test framework.
Done.
Hello, I've created a C# translation for this Kata.
It's been approved, but its initial code is incorrect (argument is missing its type).
yes and 5 years later the error is still there...
I can't stands this no more ... forked and fixed!
This should be a level 8 kata, don't you think?
It's a good idea to specify which method to use for the solution for tasks 7 and 8 of the complexity level.
This comment has been hidden.
This comment has been hidden.
That's right, I forgot that. Thank you for pointing it out.
Not a suggestion related to this kata, plus there are tasks that enforce usage of
regex
only. You can search them by theregular expression
tag ^^I like it - basic but I think you mentioned that's the point. Helpful for nbeginners I think.
This comment has been hidden.
Isn't that the point? I don't understand why this is flagged as an issue.
This isnt an issue its an opinion :-)
What should happen if the input was 'Aegg'? This is an impossible string, because if the unencoded string is 'A', the 'egg' should not have been inserted, but if the unencoded string is 'Aegg', then the encoded string is 'Aegegggegg'. Because of this, the problem is too trivial to require the use of regular expressions, which I understood was the intent of the kata. So I would suggest a twist: when encoding, 'egg' is inserted after all consonants other than g.
This cannot happen, according to the description. It is an impossible string, and it will never be given to your function.
Seems like you have a good idea for another kata! :]
Maybe more tests.It seems to be an intresting keggategga
Typo unscramble_eggs vs. unscrambled_eggs
Thanks for pointing it out. It is fixed now.
Yes, this has been fixed. Please clear this issue.
sorted
That's not really egg coded it's egg formatted. Coded means there is a hidden message inside the message.
One interesting kata would be to have the same but only "character" (character can be space,question mark etc...) before "egg" should be extracted (case insensitive), other should be ignored: "HEGGIEGG EGG ignore me UEGG" -> "HI U"
Python and Ruby translations kumited.
.