문자열 내 p와 y의 개수 자바스크립트
-
[프로그래머스] 문자열 내 p와 y의 개수 - JavaScript 📝Algorithm 2021. 11. 9. 10:13
[링크] https://programmers.co.kr/learn/courses/30/lessons/12916 코딩테스트 연습 - 문자열 내 p와 y의 개수 대문자와 소문자가 섞여있는 문자열 s가 주어집니다. s에 'p'의 개수와 'y'의 개수를 비교해 같으면 True, 다르면 False를 return 하는 solution를 완성하세요. 'p', 'y' 모두 하나도 없는 경우는 항상 True를 programmers.co.kr [문제설명 및 입출력 예] [내가 제출한 코드 및 풀이] [다른 사람의 코드]