We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddd9357 commit 96210f4Copy full SHA for 96210f4
lib/data-structures/chapter-1/1_4.js
@@ -6,7 +6,7 @@ module.exports = Strings1_4 = (function() {
6
// @retuns {Boolean} - true if a permutation of palindrome exists, false if it does not
7
palindromePermutation: function(str){
8
var distinct = 0;
9
- var s_array = Array.apply(null, Array(256)).map(Number.prototype.valueOf, 0);
+ var s_array = Array.apply(null, Array(256)).map(Number.prototype.valueOf, 0);
10
str = str.toLowerCase();
11
for(var i = 0; i < str.length; i++){
12
if(str[i] == ' '){
@@ -21,5 +21,5 @@ module.exports = Strings1_4 = (function() {
21
}
22
return (distinct < 2);
23
24
- }
+ };
25
}());
0 commit comments