7 kyu
Interactive Dictionary
3,110 of 5,626user2514386
Loading description...
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.
The kata is nice. I suggest to add OOP tag to its description
Nice kata! Learned a new topic today.
Lovely little kata. Perhaps the description could be rewritten to include the requirement of the look method. For example, "your job is to create a class called Dictionary in which you can add words to and look up their entries"
Spent some good time on this one..
My solution works 50% of the time, I don't know if I have to receive and save more words, its not specified on the details...
Yep, you have to do that lol.
Python Test is still faulty, required response is given but test wants output to be gibberish
Tests work fine (I've just tried my old solution and had no problem). Please read the doc before raising an issue, you must prove there is an issue and explain concretely giving clear logs and examples, not just say it doesn't work: https://docs.codewars.com/training/troubleshooting/
Most of issues posted are just mistakes from the original poster.
This comment has been hidden.
My old solutions works without problems, and I can see you also solved the kata. So... is there a problem, or not?
OP solved and tests work fine.
It's not clear if the values can be empty strings. It can affect correctness of some solutions in some languages.
Rust translation kumited.
This comment has been hidden.
passes the fixed test but fails the random tests in Java version
I updated the java version with random tests, and corrected the python version to make them safe: there were possibility to generate words that could be both in added and not added lists and I enforced that each of the lists contains at least one item.
The JS version needs the update too.
Should be fine now.
This comment has been hidden.
Your "dictionary" is working the same as a simple variable.
Sorry but I still don't get it.
you created an object with two fields, not a dictionnary with a lot (roughly speaking)
?
You should create some variable to store keys and values, and in newEntry just add those keys and values to the variable.
Maybe I take the same mistakes with you,but I don't know what they are.Do you know now?
No random tests in Java version.
done
PHP translation, please check and approve :-)
( JS, possibly others )
The dictionary only needs to remember the last new entry. I cannot imagine this is the full expected behaviour.
That's the way the kata was designed from the beginning. I'm currently replacing the tests with better ones.
Leaving this open because I'll probably not fix the Java version.
Fixed JS and Python. Will re-raise for Java because it's on a whole different level of being bad.
This comment has been hidden.
There's no method name in the Java initial setup code
Fixed.
JavaScript translation available. Please, review and approve :)
EDIT: Also added random tests and rewrote initial solution in Python version.
Could some one review it now? The author seems to be inactive.
I can't run neither the "Sample test" not the "Attempt"? Nothing happens when I try. Any ideas?
This is a Codewars issue.
I was fixed later that day.
This comment has been hidden.
Correct spelling from
'Cant find entry for ...'
to"Can't find entry for ..."
Random cases?
I can't run the suite... got an error message from the testing framework apparently:
Ok, I modified some stuff... Should work now.
my fault... I had a testing function called "test" in my code...
Issue marked as resolved
there is an issue when this test is run against python 2.7.6. However it works when I pick python 3.x
Should work now.
Issue marked as resolved
In the starter code you forgot to add "self" parameter in look method!
Thank you, I fixed it!