6 kyu
Let the Dominoes Fall Down
68saudiGuy
Loading description...
Algorithms
Logic
Regular Expressions
Strings
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.
Needs a sample test with only
I
chars in it.Added
Approved. Nice little headache ;)
codewars_test
andsolution
.example_tests
contains assertions outside of@it
.Fixed
Tests should use python test framework: https://docs.codewars.com/languages/python/codewars-test
test.it
blockstest.describe
in sample testscheck now if acceptable.
.
Hi,
It's a cool kata but, despite the description talking about performances, the ref solution uses (afaics) a very slow algorithm => I'll unpublish the kata so that you can adjust the perfconstraint if that's what you actually wanna do (see my solution if needed)
Cheers
note: the problem doesn't show up becasue the random inputs never contain very long sections of identical dominos. Try on somehting like
'R'*3000+'I'*3000+'L'*3000
and you'll see problems popping up...Hi,
I am using your solution as a reference solution now.
I am new to authoring new katas, so please feel free to modify the random inputs and publish again whenever you think it's appropriate.
looks good but:
you can republish after that (if it doesn't work: 1. tell me here, plz / 2. close the suggestion then republish again)
.
the inputs are too long in the first batch of random tests ;) (you inverted the size limit with the number of tests. The goal is to generate
easy case to debugdebuggable cases)Hi,
Check now if acceptable.