function solution(s){
let arr = s.toLowerCase().split('')
const a = arr.filter((i) => i === 'p').length
const b = arr.filter((i) => i === 'y').length
return a === 0 && b === 0 || a === b;
}
function numPY(s){
return s.toUpperCase().split("P").length === s.toUpperCase().split("Y").length;
}
์... p๋ y๋ก ์คํ๋ฆฟ์ ํด์ ๋น๊ตํ๋ค..
๋ฐ์ ์ง์ง ๊ธฐ๋ฐํ๋ค ใ
ใ
ใ