處理下面的問題和測試用例,我的問題是爲什麼單個字符'b'是迴文?關於與迴文相關的算法
Given a string s, partition s such that every substring of the partition is a palindrome.
Return the minimum cuts needed for a palindrome partitioning of s.
For example, given s = "aab",
Return 1 since the palindrome partitioning ["aa","b"] could be produced using 1 cut.
由於事先 林從維基迴文
BTW,我也糊塗了什麼手段分切,任何人都可以告訴我的情況下,哪裏有在一個字符串中有多個切割解決方案以擁有不同的迴文?謝謝。 –