Skip to content

521-longest-uncommon-subsequence-i

DevGod
DevGod
Vtuber
/**
* @param {string} a
* @param {string} b
* @return {number}
*/
var findLUSlength = function(a, b) {
if(a === b){
return -1;
}
if(a.length > b.length){
return a.length;
}else{
return b.length;
}
};