선택정렬
[Java] 백준 25305: 커트라인
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] arr = new int[N]; int k = sc.nextInt(); for(int i=0 ; i
[Java] 백준 2587: 대표값2
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int[] arr = new int[5]; for(int i=0 ; i
[Java] 백준 2750: 수 정렬하기
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] arr = new int[N]; for(int i=0 ; i
![[Java] 정렬 알고리즘 - 선택정렬(Selection Sort)](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FceVYGE%2FbtrXimsXwfC%2Fgakew0E9CAAa3wux6O5kiK%2Fimg.jpg)
[Java] 정렬 알고리즘 - 선택정렬(Selection Sort)
import java.util.Arrays; public class Main { public static void main(String[] args){ int[] arr = {7, 5, 9, 0, 3, 1, 6, 2, 4, 8}; for(int i=0; i