6 kyu
Anagram difference
942 of 2,275kingcobra
Loading description...
Strings
Algorithms
Fundamentals
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.
Is anybody willing to re-state the problem for me? The current description is pretty short, and whilst my solution passes the sample tests, the fixed tests, and of the random test it passes the short string but not the long strings and I can't get my head around why. I must be missing something or mis-understanding the problem but as I said the instructions are pretty short.
Having the same problem... My code works for all given examples just wont work when using long strings. been trying to find a solution for atleast 8+ hours.. I am almost certain that I am understanding the question wrong.
Taking a pen and a piece of paper, I rewrote one of these tests and started counting manually. I figured that the test had the correct answers, which meant that the error was somewhere in my code. It turned out that my function, which searches for similar characters for two strings, searches for unique similar characters. For example, check whether your code works correctly with the arguments 'aab' and 'aaa'.
Rust translation
Approved (with modified fork)
saw a similar problem on hackeerank b4
C Translation (author inactive).
approved
This was an interesting problem. I took a longer, slower path, writing down the logical process on a paper.
Java translation
CoffeeScript translation
Approved
This was hard!
Guys, how much time you spent to have it done?
2 hours 😅
I didn't know what should i do with it. anybody helps? there is no explanation to solve!
You need to think about the problem to solve it.
Very challenging kata, compliments for the idea.
Python update to new test framework (with more random tests): https://www.codewars.com/kumite/647f651324fe6dfd78ccd62f?sel=647f651324fe6dfd78ccd62f
aprooved.
Hello, can someone please tell me how to see the content of the random test that failed. It just says failed a random test, expected 36, got 12, but I cannot see what the test parameter was.
This comment has been hidden.
Found this kata a lot of fun even though it was a bit fiddly to get personally. Learned a lot from this thanks for creating it.
Wrong link in the description. Should be: https://www.codewars.com/kata/hardcore-anagram-difference
This comment has been hidden.
Should be ok now. Thanks for reporting!
Thanks so much! Submitted answer and it worked.
Dope kata!
Thank you!
Clojure translation
Please review and approve.
Thank you!
Issue above, confirmed.
This comment has been hidden.
I think you are still on the old reference solution, in which there was a typo. You may want to save your solution and reset the kata to get the new reference solution.
reset it to no avail, I will try later, thank you, kingcobra
I've rewritten the solution again.
Note that the answer in your example is actually 22 : you forgot to count a 'v'.
Thank you, now it's working fine
This comment has been hidden.
Which language?
Thank you for spotting that, @Talrendis! I added a test which covers this.
@KenKamau : it was js. It's fixed now, though I think you used a similar algorithm for your Ruby translation, and possibly Haskell?
@KenKamau : Ruby and Haskell are okay.
Thx!
Thank you for the translations, @KenKamau!
You're welcome! Let me know if issues arise.
Haskell translation
Please review and approve.
Approved some time ago
Javascript translation
Please review and approve
Approved some time ago
Ruby translation
Please review and approve
Approved some time ago
This comment has been hidden.
Woops. Thank you for catching that! :)
P.S.: Thank you! :)