7 kyu
noobCode 03: CHECK THESE LETTERS... see if letters in "String 2" are present in "String 1"
994 of 1,773ozymandias1
Loading description...
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.
String1 and String2 are reversed in the kata title. Should be: '...see if letters in "String 2" are present in "String 1"''.
Fixed
the description is incomplete: what about multiple letters?
=> it must be told that the number of chars must be ignored, just their presence/absence matters.
.
python translation:
https://www.codewars.com/kumite/5e7348f1fdda1d000f5a4ef6?sel=5e7348f1fdda1d000f5a4ef6
There is no tests that checks if there more then one identical letter in the second string and only one in the first. For example my code passed all tests, but it also works on ["THE ARR", "tthhee arrrr"].
C#-Translation kumited!
https://www.codewars.com/kumite/57d022e195497e1c60000203
Please check and approve it. :-)
Translation is still waiting for approval. ;-)
Approved
If a function takes two arguments, it should actually take two arguments, not a single array.
This kata does not take two arguments, it takes a single array with 2 string elements as indicated by the examples.
That should be reflected in the description. Also, using an array here instead of two arguments is bad practice.
Noted, thanks!
Thanks!