|
|
back to board() 1 ?? () ->0 ??? "A string a is a cyclic shift of a string b if a and b have the same lengths and a consists of some _(possibly empty)_ suffix from b followed by a prefix from b." I dont understand ur explaining . Can U explain it(cyclic shift) with some examples "possibly empty" has been emphasised. so every expression is a cyclic shift of itself. () leads to two cyclic shifts: () and )(. Only () is valid bracket sequence, so the answer is 1. |
|
|