Naive (Longest Palindromic Substring Longest Palindromic Substring)

From Algorithm Wiki
Jump to navigation Jump to search

Time Complexity

$O(n^{3})$

Space Complexity

$O({1})$ words

(https://www.geeksforgeeks.org/longest-palindrome-substring-set-1/)

Description

Approximate?

Exact

Randomized?

No, deterministic

Model of Computation

Word RAM

Year

1940

Reference

-