Just playing with it here (Win, Maya 2012/x64) it comes up with a TypeError: not enough arguments for format string. I've not really used much % string formatting so I'm at a mild loss, but the same code works fine in say, IDLE, so I've a half guess it's how the code bloc...
题目链接:https://leetcode.com/problems/minimum-insertion-steps-to-make-a-string-palindrome/ 题目大意:插入最少的字符使得字符串为回文串 题目分析:这题hard。。。?其实插入最少使之变成回文和删除最少使之变成回文是一个意思,题目的核心就是求最长回文子序列(注意是子序列,不是子串),总长减去这个值就是答案...