Skip to content

Commit 0f6362a

Browse files
authored
Create 521-longest-uncommon-subsequence-i.js
1 parent 9bfd337 commit 0f6362a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

521-longest-uncommon-subsequence-i.js

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/**
2+
* @param {string} a
3+
* @param {string} b
4+
* @return {number}
5+
*/
6+
const findLUSlength = function(a, b) {
7+
return a === b ? -1 : Math.max(a.length, b.length);
8+
};

0 commit comments

Comments
 (0)