3083. Existence of a Substring in a String and Its Reverse
Given a string
s
, find any substring of length2
which is also present in the reverse ofs
.Return
true
if such a substring exists, andfalse
otherwise.
1 | class Solution { |
3083. Existence of a Substring in a String and Its Reverse
Given a string
s
, find any substring of length2
which is also present in the reverse ofs
.Return
true
if such a substring exists, andfalse
otherwise.
1 | class Solution { |