problemscpp
A collection of my answers to algorithm problems in c++.
静态 Public 成员函数 | 所有成员列表
leetcode::remove_palindromic_subsequences::Solution类 参考

#include <leetcode.h>

静态 Public 成员函数

static int removePalindromeSub (string s)
 

详细描述

在文件 leetcode.h557 行定义.

成员函数说明

◆ removePalindromeSub()

int leetcode::remove_palindromic_subsequences::Solution::removePalindromeSub ( string  s)
static

在文件 leetcode.cpp1253 行定义.

1253 {
1254 for(int i = 0, j = s.length() - 1; i < j; i++, j--) {
1255 if(s[i] != s[j]) {
1256 return 2;
1257 }
1258 }
1259 return 1;
1260 }

被这些函数引用 leetcode::remove_palindromic_subsequences::TEST().


该类的文档由以下文件生成: