sarang넘치는 코딩 공작소
close
프로필 배경
프로필 로고

sarang넘치는 코딩 공작소

  • 분류 전체보기 (98) N
    • Java (15)
    • SpringBoot (0)
    • 코딩테스트 (56) N
      • 개념정리 (7)
      • 문제풀이 (49) N
    • 자격증 (14)
      • 정보처리기사 (12)
      • AWS Solution Architecture (2)
    • JavaScript (1)
    • Vue.js (8)
    • 프로젝트 (1)
    • RabbitMQ (1)
    • Network (1)
    • Database (1)
  • 홈
  • 태그
  • 방명록

[ 프로그래머스 ] #159994 : 카드 뭉치 - JAVA

🔗 카드 뭉치import java.util.*;class Solution { public String solution(String[] cards1, String[] cards2, String[] goal) { Deque stack1=new ArrayDeque(); Collections.addAll(stack1,cards1); Deque stack2=new ArrayDeque(); Collections.addAll(stack2,cards2); Deque queue=new ArrayDeque(); Collections.addAll(queue,goal); while(!queue.isEmpty()){ ..

  • format_list_bulleted 코딩테스트/문제풀이
  • · 2025. 4. 19.
  • textsms

[ 프로그래머스 ] #42862 : 체육복 - JAVA

🔗 체육복import java.util.Arrays;class Solution { public int solution(int n, int[] lost, int[] reserve) { // n : 전체 학생의 수 // lost : 도난 당한 학생들의 번호 // reserve : 여벌의 체육복을 가져온 학생들의 번호 // 체육 수업을 들을 수 있는 학생의 최댓값 return // reserve 학생이 lost 에 있을 수도 있음 -> 빌려줄 수 없음 Arrays.sort(lost); Arrays.sort(reserve); int lostSize=lost.length; int reserve..

  • format_list_bulleted 코딩테스트/문제풀이
  • · 2025. 4. 18.
  • textsms

[ 프로그래머스 ] #42860 : 조이스틱 - JAVA

🔗 조이스틱class Solution { public int solution(String name) { int answer=0; int len=name.length(); // 1. 상하 이동 최소화 for(int i=0;i

  • format_list_bulleted 코딩테스트/문제풀이
  • · 2025. 4. 17.
  • textsms

[ 프로그래머스 ] #64065 : 튜플 - JAVA

🔗 튜플import java.util.*;class Solution { public int[] solution(String s) { // 1. 양 끝 {{와 }} 제거 s = s.substring(2, s.length() - 2); // 2. "},{" 기준으로 split String[] sets = s.split("\\},\\{"); // 3. 길이 기준 정렬 Arrays.sort(sets, Comparator.comparingInt(String::length)); // 4. 결과 튜플 저장용 Set seen = new HashSet(); List result = new ArrayLi..

  • format_list_bulleted 코딩테스트/문제풀이
  • · 2025. 4. 16.
  • textsms

[ 프로그래머스 ] #42586 : 기능개발 - JAVA

🔗 기능개발import java.util.*;class Solution { public int[] solution(int[] progresses, int[] speeds) { // progresses : 작업 진도, speeds : 작업 속도 Deque queue=new ArrayDeque(); int n=progresses.length; int[] dayLeft=new int[n]; // 남은 일수 계산 for(int i=0;i

  • format_list_bulleted 코딩테스트/문제풀이
  • · 2025. 4. 15.
  • textsms

[ 프로그래머스 ] #42839 : 소수 찾기 - JAVA

🔗 소수 찾기import java.util.*;class Solution { public int solution(String numbers) { // Set 으로 숫자 조합 저장 Set numberSet = new HashSet(); boolean[] visited = new boolean[numbers.length()]; // 모든 자리수 조합을 만들기 generateNumbers("", numbers, visited, numberSet); int count = 0; for (int num : numberSet) { if (isPrime(num)) { count+..

  • format_list_bulleted 코딩테스트/문제풀이
  • · 2025. 4. 14.
  • textsms
  • navigate_before
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • ···
  • 10
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (98) N
    • Java (15)
    • SpringBoot (0)
    • 코딩테스트 (56) N
      • 개념정리 (7)
      • 문제풀이 (49) N
    • 자격증 (14)
      • 정보처리기사 (12)
      • AWS Solution Architecture (2)
    • JavaScript (1)
    • Vue.js (8)
    • 프로젝트 (1)
    • RabbitMQ (1)
    • Network (1)
    • Database (1)
최근 글
인기 글
최근 댓글
태그
  • #dynamic_programming
  • #소프트웨어설계
  • #정보처리기사
  • #소프트웨어개발
  • #bfs
  • #tree
  • #vue.js
  • #Stack
  • #HashMap
  • #queue
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바