인프런 커뮤니티 질문&답변
풀이과정 질문합니다.
해결된 질문
작성
·
214
0
안녕하세요!! 이번 문제는 강의를 보기전에 혼자서 풀어봤습니다.
저는 이문제를 2중for문으로 해결했습니다. 그리고 강의를 시청했는데 풀이 방법이 다르더군요...
그래서 갑자기 궁금해졌는데 코딩테스트문제를 풀때 언어에 내장되있는 기능들을 사용해도 되는건가요??
아니면 하나하나 직접 만들면서 풀어야하는건가요??
갑자기 궁금하네요.. ㅎㅎ
퀴즈
What is the most efficient way to count the total number of specific characters in a string, ignoring case?
Iterate through the string and compare each character to both the uppercase and lowercase of the target character.
Convert the entire string to a single case (e.g., all uppercase) and count the characters.
Count uppercase and lowercase letters respectively and sum them.
Using a Set data structure, store characters without duplicates and then count them.





