3 ms·
I think it's pretty clear that a string s of pebbles is a pattern iff there exist strings x and y such that s = x|y|y|y, where | denotes string concatenation an
by akoboldfrying 1y ago
I think it's pretty clear that a string s of pebbles is a pattern iff there exist strings x and y such that s = x|y|y|y, where | denotes string concatenation and y is nonempty.
EDIT: Clarify that only y is nonempty.