diff --git a/chapter01/1.1 - Is Unique/isUnique.js b/chapter01/1.1 - Is Unique/isUnique.js index 136496c..967cf6b 100644 --- a/chapter01/1.1 - Is Unique/isUnique.js +++ b/chapter01/1.1 - Is Unique/isUnique.js @@ -1,4 +1,5 @@ var allUniqueChars = function(string) { + if (string.length > 128) returne false; // O(n^2) approach, no additional data structures used // for each character, check remaining characters for duplicates @@ -13,4 +14,4 @@ var allUniqueChars = function(string) { }; /* TESTS */ -// log some tests here \ No newline at end of file +// log some tests here