How do I reduce time complexity of this substring palindrome?

前端 未结 0 1394
闹比i
闹比i 2021-01-15 17:22

I am solving this problem, input: a string, output: it\'s longest substring that is a palindrome I solved it in the below manner in O(n^3). I am trying to solve it in O(n^2)

相关标签:
回答
  • 消灭零回复
提交回复
热议问题