import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; public class Main { public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); ArrayList list = new ArrayList(); for (int i = 0; i < N; i++) { list.add(br.readLine()); } // 정렬 Collections.sort(list, n..
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; public class Main { public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); HashSet set = new HashSet(); for (int i = 0; i < N; i++) { set.add(br.readLine()); } ArrayList list = new ArrayList(set);..
컬렉션 프레임워크의 개념 컬렉션 프레임워크란 ? - 다수의 데이터를 쉽고 효과적으로 처리할 수 있는 표준화된 방법을 제공하는 클래스의 집합 즉, 데이터를 저장하는 자료 구조와 데이터를 처리하는 알고리즘을 구조화하여 클래스로 구현해 놓은 것이다. 이러한 컬렉션 프레임워크는 자바의 인터페이스를 사용하여 구현된다. 컬렉션 프레임워크 주요 인터페이스 - List, Set, Map List, Set은 모두 Collection 인터페이스를 상속받지만, 구조상의 차이로 인해 Map 인터페이스는 별도로 정의된다. 주요 인터페이스의 간략한 특징 List : 순서가 있는 데이터의 집합, 중복을 허용함 - Vector, ArrayList, LinkedList, Stack, Queue Set : 순서가 없는 데이터의 집합, ..
void selectionSort(int[] arr) { int indexMin, temp; for (int i = 0; i < arr.length-1; i++) { indexMin = i; for (int j = i+1; j < arr.length; j++) { if (arr[j] < arr[indexMin]) { indexMin = j; } } temp = arr[indexMin]; arr[indexMin] = arr[i]; arr[i] = temp; } System.out.println(Arrays.toString(arr)); } 1. 선택 정렬 (Selection Sort) - 해당 자리를 선택하고 그 자리에 오는 값을 찾는 것 1) 주어진 배열 중에서 최소값을 찾는다. 2) 그 값을 맨 앞에 위..
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { static int T, money, count; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); T = Integer.parseInt(br.readLine()); money = 1000 - T; count += money / 500; count += money % 500 /100; count += money % 500 % 100 / 50; count += money %..
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { static int A, B, C; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int T = Integer.parseInt(br.readLine()); if (T%10 > 0) { System.out.println(-1); } else { A = T/300; T -= A * 300; B = T/60; T -= B * 60; C = T/10; System.out.pr..
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); long N = Integer.parseInt(br.readLine()); int pow = 1; boolean b = false; if (N == pow) { System.out.println(1); } else { for (int i = 0; i < 30; i++) { pow *= 2; if (N == pow) { b ..
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; public class Main { static int N, sum, topSum, bottomSum; static int[] arr; static double answer, personNum; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); N = Integer.parseInt(br.readLine()); arr = new int[N]; for (int i =..
- Total
- Today
- Yesterday
- 가상 면접 사례로 배우는 대규모 시스템 설계 기초
- BOJ
- REST API
- http
- 모던자바스크립트
- js array
- Spring Security
- JS 딥다이브
- 드림코딩
- js promise
- js api
- dreamcoding
- 프로그래머스
- java
- ㅇㄷㅇㅈ
- 킹수빈닷컴
- 이펙티브자바
- 이펙티브자바 아이템60
- 백준
- 백기선 스터디
- 프로그래머스 SQL
- JPA 연관관계 매핑
- 이펙티브자바 아이템59
- 이펙티브자바 스터디
- GCP
- 패스트캠퍼스 컴퓨터공학 완주반
- 김영한 http
- HTTP 완벽가이드
- 김영한 JPA
- HTTP 완벽 가이드
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |