문제 링크 : Remove Palindromic Subsequences
/**
* @param {string} s
* @return {number}
*/
var removePalindromeSub = function(s) {
return s.split("").reverse().join("") == s ? 1 : 2;
};
/**
* @param {string} s
* @return {number}
*/
var removePalindromeSub = function(s) {
const strLeng = s.length
for(let i=0; i<=Math.floor(strLeng/2)-1; i++) {
if(s[i] !== s[strLeng-1-i]) return 2
}
return 1
};