We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9bfd337 commit 0f6362aCopy full SHA for 0f6362a
521-longest-uncommon-subsequence-i.js
@@ -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