problemscpp
A collection of my answers to algorithm problems in c++.
载入中...
搜索中...
未找到
leetcode::longest_uncommon_subsequence_i::Solution类 参考

#include <leetcode.h>

静态 Public 成员函数

static int findLUSlength (const string &a, const string &b)
 

详细描述

在文件 leetcode.h1459 行定义.

成员函数说明

◆ findLUSlength()

int leetcode::longest_uncommon_subsequence_i::Solution::findLUSlength ( const string & a,
const string & b )
static

在文件 leetcode.cpp3809 行定义.

3809 {
3810 if(a.length() != b.length() || b.find(a) == string::npos && a.find(b) == string::npos) {
3811 return max(a.length(), b.length());
3812 }
3813 return -1;
3814 }

被这些函数引用 leetcode::longest_uncommon_subsequence_i::TEST(), leetcode::longest_uncommon_subsequence_i::TEST() , 以及 leetcode::longest_uncommon_subsequence_i::TEST().


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