일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- 리눅스
- StyleSheet
- 소스트리
- springSecurity
- Spring boot
- security
- css
- 시큐리티 로그아웃
- 프로그래머스
- html
- 목록
- 싱글톤
- 시큐리티 로그인
- 시큐리티로그인
- 코딩테스트
- JAVA11
- 반복문
- programmers
- 시큐리티
- springboot
- Linux
- sql
- codingtest
- gradle
- 스프링 부트
- javascript
- input태그
- 2차원배열
- 로그인
- java
- Today
- Total
목록코딩테스트 (17)
JAVAIARY
문제: https://school.programmers.co.kr/learn/courses/30/lessons/42885 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public int solution(int[] people, int limit) { int answer = 0; // 사용된 구명보트의 수 Arrays.sort(people); // people 배열을 ArrayList 형식으로 변환 ArrayList peopleAl = new ArrayList(); for (int person : people) { peopleAl.add(person); ..
문제:https://school.programmers.co.kr/learn/courses/30/lessons/155652 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr class Solution { public String solution(String s, String skip, int index) { String answer = ""; for (int i = 0; i < s.length(); i++) { char target = s.charAt(i); // i번째 문자 int idxCnt = 0; // idxCnt 가 index 와 같지 않고, 현재 t..
문제: https://school.programmers.co.kr/learn/courses/30/lessons/120922 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr class Solution { public int solution(int M, int N) { int answer = (M-1)+ M*(N-1); return answer; } }
문제: https://school.programmers.co.kr/learn/courses/30/lessons/12943 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public class CollatzConjecture { public int solution(long num) { int answer = 0; if (num != 1) { for (int i = 1; i
문제: https://school.programmers.co.kr/learn/courses/30/lessons/120808 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public class AddOfFraction { public int[] solution(int numer1, int denom1, int numer2, int denom2) { //통분한 분자, 분모 int numer = numer1 * denom2 + numer2 * denom1; int denom = denom1 * denom2; int big = 0; // 두 수 중 큰 수 in..
문제 : https://school.programmers.co.kr/learn/courses/30/lessons/120924 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public int solution(int[] common) { int answer = 0; // 1. 수열의 길이는 항상 3 이상 // 2. 등차수열인지 확인 if (common[1]-common[0]==common[2]-common[1]) { answer= common[common.length-1]+(common[1]-common[0]); } // 3. 그렇지 않은 경우 등비수열 e..
문제: https://school.programmers.co.kr/learn/courses/30/lessons/12939 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr static String solution(String s) { String answer = ""; String[] nums = s.split("\\s"); //int로 변환해 arrayList 에 담음 ArrayList intarr = new ArrayList(); for(String num: nums ) { intarr.add(Integer.parseInt(num)); } //최댓값, 최..
문제: https://school.programmers.co.kr/learn/courses/30/lessons/77884 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public class TheNumberOfAliquotAndSum { public int solution(int left, int right) { int answer = 0; for(int i = left; i