We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
💬 문제
[코딩테스트 연습 - 문자열 다루기 기본](https://school.programmers.co.kr/learn/courses/30/lessons/12918)
💬 풀이
func solution(_ s:String) -> Bool { return (s.count == 4 || s.count == 6) && s.allSatisfy({ $0.isNumber }) }
💬 알게된 문법
allSatisfy
// allSatisfy({ $0.isLowercase }) // allSatisfy({ $0.isUppercase }) // allSatisfy({ $0.isWhitespace })
Int 형변환을 해서 nil이 나오면 정수로 이루어진 문자열이 아니다.
The text was updated successfully, but these errors were encountered:
#51 - 문자열 다루기 기본 문제 풀이
7de2c67
hwangJi-dev
No branches or pull requests
💬 문제
[코딩테스트 연습 - 문자열 다루기 기본](https://school.programmers.co.kr/learn/courses/30/lessons/12918)
💬 풀이
💬 알게된 문법
allSatisfy
Int 형변환을 해서 nil이 나오면 정수로 이루어진 문자열이 아니다.
The text was updated successfully, but these errors were encountered: