5 kyu
The Bathhouse
18 of 42dfhwze
Loading description...
Algorithms
Simulation
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.
Not sure if it's an issue or not, but it looks like the sample tests are missing some kind of situations. Ex for me:
['ff', 'ff', 'ff', 'fFF'] -> [(0, 0), (0, 0), (0, 0), (0, 0)]
. Up to you to decide if you want to add it or notI would also need to know the
capacity
for your test case.oh, sorry. I think it was 2.
This looks to me the only case I'm missing from sample tests, where no group can enter. I'll add it.
If more cases appear to be missing from sample tests, a new suggestion should be logged.
AFAICS (I didn't complete the kata yet, but from where I currently stand it looks like this), this is "incorrect"/misleading:
enter or leave or a group gets rejected
(depends on what one calls "enter", I guess)I made it very clear now in the rules:
errr, no this is kinda the opposite of what I pointed out. You need to remove that part which isn't just misleading, now, it became totally wrong with your last modification:
Really? I'm stating a "rejected" group did not even get to "enter". So what is misleading about
(enter or leave)
?Wait, I no longer remember the specs. Let me check whether rejection is also an action.
since a rejected group now neither entered nor left, according to this sentence no tuple should be added to the output for this event/action, which is in contradiction with
each action
and the actual implementation.edit: yeah, that's it
Ok got ya, with this test case added, it indeed shows rejected groups also count as action. I was confused, as rejected groups don't get a number assigned to them.
in python, for 3.10+, you don't need to import the types, just use the base functions:
tuple[...]
,list[...]
, ...done
Is the bathhouse gender fluid ? ;)
Good one;) Parental supervision is the ultimate section pass in this bathhouse.