일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 목록
- sql
- springboot
- 2차원배열
- java
- Spring boot
- security
- 시큐리티
- 코딩테스트
- StyleSheet
- input태그
- 시큐리티로그인
- 리눅스
- 시큐리티 로그인
- 싱글톤
- 로그인
- Linux
- 프로그래머스
- html
- 스프링 부트
- 반복문
- css
- 시큐리티 로그아웃
- programmers
- javascript
- codingtest
- springSecurity
- 소스트리
- gradle
- JAVA11
- Today
- Total
목록프로그래머스 (23)
JAVAIARY
문제: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/12909 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr public class CorrectBracket { boolean solution(String s) { boolean answer = true; if (s.startsWith(")")|| s.endsWith("(") || s.length() % 2 != 0) { // ),( 로 시작/끝나거나 s의 길이가 홀수이면 false 리턴 answer = false; } else { // count..