Commit cbde8c8b authored by rforder's avatar rforder

Now checks input for repeated subsequences

parent e9205476
......@@ -228,7 +228,7 @@ int test_seq_length_k(domino *domino_list, int k, char *input)
int i;
while (1)
{
if (!is_repetition(seq, k) && is_accepted(seq, k, domino_list, input))
if ((input || !is_repetition(seq, k)) && is_accepted(seq, k, domino_list, input))
{
int x;
for (x = 0; x < k; x++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment