6 kyu
Give me data
283 of 421zofy
Loading description...
Logic
Sets
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.
how that books [ '*_deny', 'books_allow', 'movies_deny' ] return false in fixed test however it should return true as in array there is exisit 'books_allow' element?
This comment has been hidden.
Maybe the description should say that *_allow loses to *_deny. Or at least that's how it seemed to me and what I wrote in my solution
that is in the last example, but it's not in the specs - and it should be. examples are not specs.
Okay, it is pretty clear in the examples. I admit I skimmed over them. But a tiny line could be added to the description when it's talking about precedence for other things.
it should definitely be in the specs. examples are not specs.
the description should be correct, complete and consistent without the examples.
Empty database seems like a valid edge case, but is not tested, explicitly not even in Python random tests.
I'd suggest adding tests with that. Description might mention it, but it doesn't even seem necessary.
False
on empty set, it should beTrue
instead, no?Both are possible actually; it should be specified.
False
makes sense though;allow
has to be an explicit permission, the default isdeny
and that overridesallow
.To prevent solutions from being invalidated, keep the current behaviour.
Python updated; around half the solutions did get invalidated.
JS translation
this translation modifies the description ( removing the
"(star)"
mentioned below, amongst others )approved, and we can close issue below
"(star)"
is in description, but only"*"
is tested.(star)
was never in tests, I think it's a mistake in the description.removed from description by Johan
So many conditions, omg, thanks for the kata.
needs random tests
added
Interesting kata, thank you :)