返回提示词库

Write a Python function that returns the longest palindromic substring of a string. Ex

提示词

Write a Python function that returns the longest palindromic substring of a string. Explain the approach briefly, then give the code with type hints.

打开模型 Playground