RunDevOps
close
프로필 배경
프로필 로고

RunDevOps

  • 분류 전체보기
    • 한화시스템 백엔드 SW교육
    • JAVA STUDY
      • 백준
      • 프로그래머스
      • JAVA Practice
      • Spring
    • DB STUDY
      • 프로그래머스
      • DB Practice
    • Cloud
      • AWS
      • AWS-SAA(C03)
    • Computer Science
    • SW_ENGINEERING STUDY
    • Certificate
    • Run
  • 홈
  • GitHub

프로그래머스 대문자와 소문자 문제

class Solution { public String solution(String my_string) { String answer = ""; char[] arr = my_string.toCharArray(); for(int i=0; i= 'a' && arr[i]= 'A' && arr[i]

  • format_list_bulleted JAVA STUDY/프로그래머스
  • · 2023. 12. 15.
  • textsms

프로그래머스 암호 해독 문제

class Solution { public String solution(String cipher, int code) { int k = code -1; String answer = ""; char[] arr = cipher.toCharArray(); for(int i=k; i

  • format_list_bulleted JAVA STUDY/프로그래머스
  • · 2023. 12. 15.
  • textsms

프로그래머스 문자열 밀기 문제

class Solution { public int solution(String A, String B) { int answer = -1; StringBuilder sb = new StringBuilder(A); for(int i=0; i

  • format_list_bulleted JAVA STUDY/프로그래머스
  • · 2023. 12. 15.
  • textsms

프로그래머스 n의 배수 고르기 문제

배열사용 풀이 import java.util.*; class Solution { public int[] solution(int n, int[] numlist) { int[] arr = new int[numlist.length]; // arr 배열 선언(길이:numlist.length) int count = 0; for(int i = 0; i

  • format_list_bulleted JAVA STUDY/프로그래머스
  • · 2023. 12. 15.
  • textsms

프로그래머스 문자열 다루기 기본 문제

// import java.util.regex.Pattern; import java.util.regex.Pattern; class Solution { public boolean solution(String s) { boolean answer = false; if(s.length() == 4 || s.length() == 6){ if(Pattern.matches("[0-9]+", s)){ answer = true; } } return answer; } } Pattern.matches : 문자열 검증 문자열 s가 "0-9"로만 이루어져 있는지 검증

  • format_list_bulleted JAVA STUDY/프로그래머스
  • · 2023. 12. 15.
  • textsms

프로그래머스 가운데 글자 가져오기

class Solution { public String solution(String s) { String answer = ""; if(s.length() % 2 == 1) { answer = s.substring(s.length() / 2, s.length() / 2 + 1); } else { answer = s.substring(s.length() / 2 - 1, s.length() / 2 + 1); } return answer; } } substring(a,b) : a이상 b미만의 index를 자름. Sting메서드

  • format_list_bulleted JAVA STUDY/프로그래머스
  • · 2023. 12. 15.
  • textsms
  • navigate_before
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • navigate_next
전체 카테고리
  • 분류 전체보기
    • 한화시스템 백엔드 SW교육
    • JAVA STUDY
      • 백준
      • 프로그래머스
      • JAVA Practice
      • Spring
    • DB STUDY
      • 프로그래머스
      • DB Practice
    • Cloud
      • AWS
      • AWS-SAA(C03)
    • Computer Science
    • SW_ENGINEERING STUDY
    • Certificate
    • Run
최근 글
인기 글
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바