题解 | #最长特殊子序列(一)#
最长特殊子序列(一)
https://www.nowcoder.com/practice/1009ff84764b4640845be677f6faab3e
/** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param s string字符串 * @param t string字符串 * @return int整型 */ int longestUniqueSubsequence(char* s, char* t ) { // write code here if(strcmp(s,t)==0) return -1; else{ return strlen(s)>strlen(t)?strlen(s):strlen(t); } }