7 kyu
Exclamation marks series #7: Remove words from the sentence if it contains one exclamation mark
1,813 of 4,112myjinxin2015
Loading description...
Fundamentals
Strings
Algorithms
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.
python new test framework
.
hello, I've already give my solution, can someone explain me why if I try to check the element's index based on the condition and pop it/them is not working properly? I thought was a good solution but it doesnt work for some tests.. thank you in advance
Rust translation (author is inactive)
Update to 1.66 version, since original translation language version is invalid
Python: testcases contain a lot of unused material, needs some cleaning.
fixed in latest fork by saudiGuy
Haskell translation
This comment has been hidden.
C translation (author gone)
approved
.
C# translation ready! Please review and approve.
Approved
Test examples were a little misleading, but it was fun finding alternative code to pass everything successfully.
The initial test cases give you a very wrong impression of what the code is supposed to do.
I pass testings. However, when I attempt I am having wrong errors. For example -'' should equal 'JSSHLIMDSISCCNTMWN'-.
Python? are you modified the input?
(the input is a string, in python at least... ;) )
So, let's waiting @StasDeep to do something..
@NOiRoi Please retry ;-)
Ruby translation. Please review and approve =)
Approved. Thanks ;-)
This comment has been hidden.
Ruby fixed now. Thanks;-)
This comment has been hidden.
Thanks a lot! Fixed tests to ensure that no consecutive spaces are in the tested string.
This comment has been hidden.
Current random tests cannot have space on the first or the last position of the string. As for forks, Codewars has an issue with editing Python translations. Every time I try to publish it after editing, it cannot pass a test, saying 'python version python not supported'.
Your modifications were insufficent: your random tests still have some consecutive spaces (that leads to the output above: "Hi! e" => " e" if you use
split(' ')
. First output character is not first input character... ;) ).About python: if you want to change a translation, you should:
last solution is the only one that doesn't require author's approval (but is the only one that could provoque unexpected troubles, because it will validate the modifications done in every languages, so if the author is morking on his side on some yet unpublished modifications... :/ )
Python "fixed"(replace translator's code by mine)
PHP Translation Kumited - please accept :D
"alr approved some time ago"
Approved;-)!