일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Properties
- Java
- priority_queue
- string
- dfs
- sql
- scanner
- 큐
- List
- 스택
- math
- date
- deque
- map
- JPA
- alter
- BFS
- NIO
- union_find
- Union-find
- html
- Calendar
- CSS
- spring boot
- 리소스모니터링
- 힙덤프
- javascript
- GC로그수집
- set
- 스프링부트
- Today
- Total
목록전체 글 (302)
매일 조금씩

class Solution { public String solution(String[] cards1, String[] cards2, String[] goal) { String answer = "Yes"; int idx1 = 0; int idx2 = 0; for(int i = 0; i < goal.length; i++){ if(goal[i].equals(cards1[idx1])) { if(idx1 != cards1.length - 1) idx1++; }else if(goal[i].equals(cards2[idx2])) { if(idx2 != cards2.length - 1) idx2++; }else { answer = "No"; break; } } return answer; } }

class Solution { boolean solution(String s) { boolean answer = true; String[] str = s.split(""); int p = 0; int y = 0; for(int i=0; i

import java.util.*; public class Solution { public int solution(int n) { int answer = 0; String m = Integer.toString(n); for(int i = 0; i

import java.util.*; class Solution { public int[] solution(long n) { String[] str = new Long(n).toString().split(""); int length = str.length; int[] answer = new int[length]; for(int i = 0; i < length; i++) { answer[length - 1 - i] = Integer.parseInt(str[i]); } return answer; } }

import java.lang.Math; class Solution { public long solution(long n) { long answer = 0; double result = Math.sqrt(n); if(result % 1 != 0) answer = -1; else answer = ((long)result+1)*((long)result+1); return answer; } }

import java.util.*; import java.util.Map.*; class Solution { public int[] solution(String[] id_list, String[] report, int k) { List answer = new ArrayList(); HashMap reportedList = new HashMap(); HashMap mailed = new HashMap(); // reportedList에 '피신고자=[신고자들]' 넣기 for(String names: report){ String reporter = names.split(" ")[0]; String reported = names.split(" ")[1]; HashSet reporterList = new Hash..