JAVA_Learn/Do it! _ Algorithm Study 15

#5. 2주차 과제 1[Chap03_1 ~ 4]

3번째 챕더는 검색 알고리즘에 관한 내용이다. 오름차순으로 입력하라고 할 때 조금 당황했다;;ㅎ 3-1 / 3-2 같은 Class 파일에 작성 (SeqSearch) 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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 package practice; import java.util.Scanner; public class SeqSearch_3_1 { static int seqSearch(int[]a, int n, int key) { int i = 0; while(true) { if(i==n) return -1; if(..

#1. 1주차 과제 1

12월 27일 월요일 Chapter 1. 과제 제출 총 10개 중 10개 완료. 1-1 (Max3) 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 package practice; import java.util.Scanner; public class Max3_1_1 { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); System.out.println("세 정수의 최댓값을 구합니다."); System.out.print("a의 값: "); int a = stdIn.nextInt(); System.out.print("b의 값: "); int b = stdIn.n..