Array_격자판 합 구하기
✅ 격자판의 각 행의 합, 열의 합, 두 대각선의 합 중 가장 큰 합을 출력합니다 class Main { public int solution(int n, int[][] intArr){ int max= 0; int sumDiagonal1=0; int sumDiagonal2=0; for(int i=0; i<...
✅ 격자판의 각 행의 합, 열의 합, 두 대각선의 합 중 가장 큰 합을 출력합니다 class Main { public int solution(int n, int[][] intArr){ int max= 0; int sumDiagonal1=0; int sumDiagonal2=0; for(int i=0; i<...
✅ 작동 순서 유저가 회원가입 하면서 이메일 입력 ➡️ 서버에서 이메일로 인증번호 이메일 발송 ➡️ 인증번호는 Redis에 저장(만료시간 5분) ➡️ 유저가 이메일에서 인증번호 확인 ➡️ 이메일과 인증번호로 서버에 인증 요청 ➡️ 서버에서 Redis있는 인증번호와 비교 ➡️ 인증 완료 혹은 exceptions처리 💡 Redis ...
✅ Background Knowledge 💡 Jasypt: Java Simplified Encryption Java library that provides simple APIs for encryption and decryption of data, including hashing. ✔️ 해싱이란? transforming text in...
1. what is listening on port 8080? lsof: list open files lsof -i :8080 kill PID
✅ N명 학생 점수가 입력되었을 때 등수 출력하기. 단, 같은 점수는 같은 등수입니다. 예를 들어, 100 92 92 85 70 => 1 2 2 4 5 class Main { public int[] solution(int n, int[] intArr){ int[] answer= new int[n]; for(int i=0...
✅ Install First, brew has to be installed // brew 버전 확인 brew --version // redis 설치 brew install redis // redis 설치 제거 brew uninstall redis // redis 버전 확인 redis-server --version ✅ Run Redis o...
1. 클론하기 // git clone --bare {repo to clone} git clone --bare https://github.com/soheeparklee/soheeparklee.github.io.git 2. 여기에 // find file cd soheeparklee.github.io.git 3. mirror push /...
✅ 0이면 0점, 1이면 1점으로 계산하되, 연속된 1이면 두 번째 1은 2점, 3번째 1은 3점 등으로 가산점을 줍니다. 예를 들어, 1 0 1 1 1 0 0 1 1 0 이면 가산점은, 1 0 1 2 3 0 0 1 2 0 이라서 최종 점수는 10점이 됩니다. class Main { public int solution(int n, int...
✅ n개의 자연수가 입력되면 그 자연수들을 뒤집는다. 이후 그 뒤집은 자연수가 소수인지 판별하여 소수이면 출력한다. 예를 들어 32를 뒤집으면 23이고 23은 소수이므로 출력 190은 뒤집으면 091이므로 91이 된다. 첫 자리부터 연속된 0은 무시한다. 1은 소수가 아니다. class Main { public boolean isP...
✅ 아리스토테네스 체 class Main { public int solution(int n){ int answer = 0; int[] intArr= new int[n+1]; //처음 빈 배열 생성되면 모든 값은 0 for(int i=2; i<n; i++){ if(intArr[i] == 0){ ...