It is editable now but got another issue.
In Valid Palindrome II lesson of Grokking Coding Interview Patterns in JavaScript, I have pasted this code into the editor
export function isPalindrome(s) {
if(s.length === 1) {return true;}
let left = 0, right = s.length - 1;
let count = 0;
while (left < right && count <=1) {
if(s[left] !== s[right]){
if(s[left] === s[right-1]) {count++; right--;}
else if(s[left+1] === s[right]) {count++; left++;}
else {return false;}
}
left++;
right--;
}
if(count <= 1) {return true;}
}.
However, it keeps giving me the error “Error encountered during parsing results”. Due to this error, test cases are not running.
Can you please let me know if there is a mistake in my code or if there is an issue with the code editor?
Course: Grokking Coding Interview Patterns in JavaScript - Learn Interactively
Lesson: Valid Palindrome II - Grokking Coding Interview Patterns in JavaScript