호우주의보
close
프로필 배경
프로필 로고

호우주의보

  • 분류 전체보기 (32)
    • TIL (4)
    • 공부 (15)
      • App (1)
      • A.I. (1)
      • Web (0)
      • 기타 (5)
      • Spring (5)
      • SQL (3)
    • 알고리즘 (3)
      • 프로그래머스 (3)
    • 대외활동 (10)
    • 일상 (0)
    • 쿠아데브 (0)
  • 홈
  • 태그
  • 방명록
Day3

Day3

기초문자열 섞기오답class Solution { public String solution(String str1, String str2) { String answer = new StringBuilder(""); for(int i=0; i답class Solution { public String solution(String str1, String str2) { StringBuilder answer = new StringBuilder(); for(int i = 0; i 문자 리스트를 문자열로 변환하기내 답class Solution { public String solution(String[] arr) { S..

  • format_list_bulleted 알고리즘/프로그래머스
  • · 2024. 8. 13.
  • textsms
프로그래머스 자바 - 두 개 뽑아서 더하기

프로그래머스 자바 - 두 개 뽑아서 더하기

문제 설명정수 배열 numbers가 주어집니다. numbers에서 서로 다른 인덱스에 있는 두 개의 수를 뽑아 더해서 만들 수 있는 모든 수를 배열에 오름차순으로 담아 return 하도록 solution 함수를 완성해주세요.제한사항numbers의 길이는 2 이상 100 이하입니다.numbers의 모든 수는 0 이상 100 이하입니다.입출력 예numbers result[2,1,3,4,1][2,3,4,5,6,7][5,0,2,7][2,5,7,9,12]코드import java.util.TreeSet;import java.util.Set;class Solution { public Set solution(int[] numbers) { Set set = new TreeSet(); ..

  • format_list_bulleted 알고리즘/프로그래머스
  • · 2024. 8. 12.
  • textsms

Day2

기초덧셈식 출력하기public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int a = sc.nextInt(); int b = sc.nextInt(); System.out.printf("%d + %d = %d",a,b,a+b); }}문자열 붙여서 출력하기import java.util.Scanner;public class Solution { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String ..

  • format_list_bulleted 알고리즘/프로그래머스
  • · 2024. 8. 12.
  • textsms
  • navigate_before
  • 1
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (32)
    • TIL (4)
    • 공부 (15)
      • App (1)
      • A.I. (1)
      • Web (0)
      • 기타 (5)
      • Spring (5)
      • SQL (3)
    • 알고리즘 (3)
      • 프로그래머스 (3)
    • 대외활동 (10)
    • 일상 (0)
    • 쿠아데브 (0)
최근 글
인기 글
최근 댓글
태그
  • #혼공
  • #React Native
  • #혼공학습단
  • #개발진행
  • #프로그래머스
  • #코칭스터디
  • #Til
  • #혼공파
  • #혼공머신
  • #DSP2024
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바