Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在寻找 char[] 中最短的回文。除了获取每个字符并检查其周围的字符之外,该怎么做O(n^2)?
O(n^2)