| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- 문제풀이
- 프로그래머스
- SWEA
- Java
- BOJ
- 운동기록
- 투포인터
- COS PRO
- oracle
- BFS
- 건강
- MySQL
- greedy
- 러닝일지
- dfs
- 이분탐색
- 알고리즘
- 자바
- binary search
- SQL
- 문제해결
- priorityqueue
- db
- 시뮬레이션
- 코딩테스트
- DP
- 코테
- 백준
- math
- 문자열
- Today
- Total
목록Java (469)
슈콩
[소스 코드]import java.util.*;class Main { boolean[] visit; List list = new ArrayList(); public int solution(int[] card, int n) { // 여기에 코드를 작성해주세요. int answer = 0; visit = new boolean[card.length]; dfs(0,"",card); Arrays.sort(card); if(list.contains(n)) answer = list.indexOf(n); else answer = -1; return answer; } public void dfs..
[소스 코드]import java.util.Arrays;class Main { class Unit { public int HP; public Unit() { this.HP = 1000; } public void underAttack(int damage) { } } class Monster extends Unit { public int attackPoint; public Monster(int attackPoint) { this.attackPoint = attackPoint; } public void underAttack(int damage) { ..
[소스 코드]import java.util.Arrays;class Main { public int power(int base, int exponent) { int val = 1; for (int i = 0; i
[소스 코드]class Main { public String reverse(String number) { String reverseNumber = ""; for(int i = number.length()-1; i >= 0; i--) reverseNumber += number.charAt(i); return reverseNumber; } public String solution(int n) { String answer = ""; for(int i = 0; i
[소스 코드]class Main { public long solution(int oneDayPrice, int multiDay, int multiDayPrice, long n){ if(oneDayPrice * multiDay
[소스 코드]import java.util.*;class Main { public String solution(String s) { s = s.toLowerCase(); String answer = ""; char previous = s.charAt(0); int counter = 1; for(int i=1; i
[소스 코드]import java.util.*;public class Main { String[] vowels = {"A", "E", "I", "O", "U"}; ArrayList words; public void create_words(int lev, String str) { words.add(str); for (int i = 0; i (); create_words(0, ""); for (int i = 0; i
[소스 코드]import java.util.ArrayList;import java.util.Iterator;class Main { class Shop{ protected ArrayList reserveList; public Shop() { this.reserveList = new ArrayList(); } public boolean reserve(Customer customer){ reserveList.add(customer); return true; } } class Customer{ public int id; public int time; public i..
[소스 코드]class Main { public int solution(int[] revenue, int k) { int answer = 0; int n = revenue.length; int sum = 0; for (int i = 0; i