Computer Science, asked by torbaba2694, 1 year ago

Find whether string s is divisible by string t

Answers

Answered by rajat2269
4

Answer:

A string s is said to be divisible by string tif string t can be concatenated some number of times to get strings. Example: S = bcdbcdbcd t = bcdbcd If string t is concatenated twice, the result is bcdbcdbcdbcd > S. String s is not divisible by string t. so the result is -1.

Similar questions