일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- SWEA
- 라이브러리
- 20006
- Algorithm
- 25379
- 프로그래머스
- 사용자정의필터
- 장고
- 파이썬
- 1342
- 9081
- 알고리즘
- PS
- 6730
- 자바
- sovled.ac
- 17087
- 11688
- PYTHON
- sloved.ac
- java
- 23971
- 15965
- pccp
- solved.ac
- Django
- 24511
- programmers
- 백준
- 2866
- Today
- Total
목록2024/06 (4)
코깽이의 코딩일기
제출한 코드import java.util.*;class Solution { public int solution(int k, int[] tangerine) { Map map = new HashMap(); int answer = 0; for(int key : tangerine){ map.put(key, map.getOrDefault(key, 0) + 1); } Integer[] data = new Integer[map.size()]; int idx= 0; for(int value : map.values()){ data[idx++] = value; } ..
제출한 코드import java.util.*;class Solution { static int max; public int solution(int n, int[][] wires) { int answer = -1; int[][] map = new int[n+1][n+1]; max = Integer.MAX_VALUE; // 초기 세팅 for(int[] edge : wires){ map[edge[0]][edge[1]] = 1; map[edge[1]][edge[0]] = 1; } // 간선을 1개씩 제거해보면서 탐색 진행 for..
제출한 코드import java.util.*;class Solution { public int solution(int[] bandage, int health, int[][] attacks) { Deque attack = new ArrayDeque(); for(int[] data : attacks){ attack.add(data); } int maxHealth = health; int count = 0; int time = 1; while(!attack.isEmpty()){ // 몬스터 공격을 받는 경우 if(attack.pee..
제출한 코드1차 제출한 코드 - 정확성 60.0 효율성 0 ( 시간 초과 + 메모리 초과 )import java.util.*;public class Solution { public int solution(int n) { int cost = n; // 방문 처리용 배열 세팅 int[] v = new int[n+1]; Arrays.fill(v, Integer.MAX_VALUE); Deque q = new ArrayDeque(); q.add(new int[] {0,0}); while(!q.isEmpty()){ int[]..