일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 시큐리티 로그인
- 싱글톤
- css
- 스프링 부트
- StyleSheet
- 2차원배열
- 시큐리티로그인
- gradle
- input태그
- 시큐리티
- 프로그래머스
- programmers
- security
- 소스트리
- 목록
- springboot
- sql
- 시큐리티 로그아웃
- codingtest
- springSecurity
- Linux
- Spring boot
- java
- html
- JAVA11
- 코딩테스트
- javascript
- 반복문
- 리눅스
- 로그인
- Today
- Total
목록프로그래머스 (23)
JAVAIARY
문제: https://school.programmers.co.kr/learn/courses/30/lessons/70129 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr import java.util.ArrayList; class Solution { public static int[] solution(String s) { int zeroCnt = 0; int cnt =0; while(!s.equals("1")) { int num = 0; // 1 개수 == 숫자 // 0 제거 for (int i = 0; i < s.length(); i++) { if (s...
문제: https://school.programmers.co.kr/learn/courses/30/lessons/87390 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr class Solution { public long[] solution(int n, long left, long right) { long[] answer = new long[(int) (right - left + 1)]; long rw = left /n; // 시작 행 long clmn = left % n;// 시작 열 int i = 0; // 시작 clmn이 0일 경우 반복문에서 바로 행..
문제: https://school.programmers.co.kr/learn/courses/30/lessons/64061 프로그래머스코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요.programmers.co.kr import java.util.Stack; class Solution { public int solution(int[][] board, int[] moves) { int answer = 0; // 터진 인형 개수 Stack bucket = new Stack(); // 바구니 for (int i = 0; i < moves.length; i++) { int target = moves[i]-1; i..
문제: https://school.programmers.co.kr/learn/courses/30/lessons/118666 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr class Solution { public String solution(String[] survey, int[] choices) { String answer = ""; // 비동의 - 동의 선택지 //RT, CF, MJ, AN // 동점인 경우 알파벳순 int[] personality = new int[8]; // 각각 R, T, C, F, J, M, A, N 의 점수를 담을 배열 for..

문제: https://school.programmers.co.kr/learn/courses/30/lessons/42747 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr import java.util.Arrays; class Solution { public int solution(int[] citations) { int answer = 0; Arrays.sort(citations); // 논문 수가 1일때 if (citations.length == 1) { answer = citations[0] == 0 ? answer : answer+1 ; return ..
문제: https://school.programmers.co.kr/learn/courses/30/lessons/120897 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr import java.util.ArrayList; import java.util.Collections; public class FindingDividors { public ArrayList solution(int n) { ArrayList answer = new ArrayList(); answer.add(1); if (n != 1) { answer.add(n); } for (int i =..
문제: https://school.programmers.co.kr/learn/courses/30/lessons/120923 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr class Solution { public int[] solution(int num, int total) { int sum =0; for(int i = 0; i< num; i++){ sum += i; } int start = (total-sum)/num; int[] answer = new int[num]; for(int i =0; i < num; i++){ answer[i] = start..
문제: 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); ..