Vote count:
0
Suppose there is a string "abc" and given rotational strings like abc, bca ,cab(i.e 3 possible rotational strings are possible) similarly i need a method that should take two string as input and tell whether those two follow under this category or not. I thought of the following:
given string abc string length =3
created a big array abcbcacab and check using contains. in this solution i have problems as wrong input also get passed i.e "cbc" Please help.
asked 1 min ago
How to find rotational string?
Aucun commentaire:
Enregistrer un commentaire