알고리즘

[알고리즘]시저암호_알파벳 초과시 offset 방법(z이상으로 넘어갈 경우, a부터 카운트)_프로그래머스 문제

seulhasony 2024. 1. 24. 13:17

https://school.programmers.co.kr/learn/courses/30/lessons/12926

 

프로그래머스

코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.

programmers.co.kr

 

솔루션

https://gist.github.com/KimSeulHa/0735a0d9318368c2d14545ff602f1c4c

 

시저암호_알파벳 초과시 offset방법

시저암호_알파벳 초과시 offset방법. GitHub Gist: instantly share code, notes, and snippets.

gist.github.com

 

활용 메소드

1. Character

 - Character.isAlphabetic(char c) : 문자열이 알파벳인지 확인, 맞으면 true

 - Character.isUpperCase(char c) : 대문자인지 확인, 맞으면 true