본문 바로가기 메뉴 바로가기

kingsubin

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

kingsubin

검색하기 폼
  • 분류 전체보기 (485)
    • Python (1)
    • Java (35)
    • Spring (18)
    • JavaScript & TypeScript (23)
    • HTML & CSS (2)
    • Database (4)
    • DevOps (8)
    • CS (13)
    • Algorithm (10)
    • etc (22)
    • PS (231)
      • boj (157)
      • programmers (54)
      • etc (19)
      • leetcode (1)
    • 책 (98)
      • 이펙티브자바 (50)
      • 모던 자바스크립트 딥다이브 (24)
      • misc (14)
      • 독서 (10)
    • 일상 (20)
  • 방명록

PS/etc (19)
chapter2) 배열 역순 정렬

public class Q2 { public static void main(String[] args) { Random random = new Random(); int[] arr = new int[6]; for (int j = 0; j < arr.length; j++) { arr[j] = random.nextInt(100); System.out.print(arr[j] + " "); } for (int i = 0; i < arr.length/2; i++) { System.out.println("\na[" + i + "]과 a[" + (arr.length - 1 - i) + "]를 교환합니다."); swap(arr, i, arr.length - i - 1); for (int j = 0; j < arr.leng..

PS/etc 2020. 7. 7. 19:18
chapter1) 숫자 피라미드 찍기

public class Q17 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("출력할 단 수를 입력하세요."); int n; do { System.out.print("단 수 : "); n = scanner.nextInt(); } while (n

PS/etc 2020. 7. 7. 17:22
chapter1) 피라미드 별 찍기

public class Q16 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("출력할 단 수를 입력하세요."); int n; do { System.out.print("단 수 : "); n = scanner.nextInt(); } while (n

PS/etc 2020. 7. 7. 17:07
chapter1) 직각 이등변 삼각형 별찍기

public class Q15 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("직각 이등변 삼각형을 출력합니다."); System.out.print("출력할 단수 : "); int n = scanner.nextInt(); System.out.println("출력하고 싶은 삼각형을 입력하세요."); System.out.println("LB LU RB RU"); System.out.print("출력할 삼각형 : "); String triangle = scanner.next(); if (triangle.contains("LB")) { triangleLB(n); } else..

PS/etc 2020. 7. 6. 22:10
chapter1) 사각형 별찍기

public class Q14 { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("사각형을 출력합니다"); System.out.print("단 수 : "); int a = scanner.nextInt(); for (int i = 1; i

PS/etc 2020. 7. 6. 21:25
chapter1) 덧셈표 작성

public class Q13 { public static void main(String[] args) { System.out.println(" | 1 2 3 4 5 6 7 8 9 "); for (int i = 1; i

PS/etc 2020. 7. 6. 21:20
chapter1) 곱셈표 작성

public class Q12 { public static void main(String[] args) { System.out.println(" | 1 2 3 4 5 6 7 8 9 "); for (int i = 1; i

PS/etc 2020. 7. 6. 21:14
chapter1) 양의 정수 자릿수 구하기

public class Q11 { // 양의 정수를 입력하고 자릿수를 출력하는 프로그램 public static void main(String[] args) { Scanner scanner = new Scanner(System.in); System.out.println("자릿수를 구할 양의 정수를 입력하세요."); int a; do { System.out.print("a : "); a = scanner.nextInt(); } while (a 0) { a /= 10; num++; } System.out.println("자릿수 : " + num); } } - 풀다가 모르겠어서 답 봄 ※참조 Do it! 자료구조와 함께 배우는 알고리즘 입문

PS/etc 2020. 7. 6. 20:57
이전 1 2 3 다음
이전 다음
링크
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
TAG
  • BOJ
  • 가상 면접 사례로 배우는 대규모 시스템 설계 기초
  • 이펙티브자바 아이템59
  • js array
  • JPA 연관관계 매핑
  • JS 딥다이브
  • 이펙티브자바 아이템60
  • http
  • GCP
  • 이펙티브자바 스터디
  • 백기선 스터디
  • HTTP 완벽 가이드
  • dreamcoding
  • java
  • 이펙티브자바
  • 프로그래머스 SQL
  • 백준
  • js api
  • 모던자바스크립트
  • 킹수빈닷컴
  • 패스트캠퍼스 컴퓨터공학 완주반
  • HTTP 완벽가이드
  • 집 구하기
  • 드림코딩
  • js promise
  • 김영한 http
  • 프로그래머스
  • Spring Security
  • REST API
  • 김영한 JPA
more
«   2023/12   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바