Yeeun's Log

끄적끄적
  • 홈
  • 태그
  • 방명록

Level2 2

[Algorithm/Programmers] 무인도 여행 - 154540 (L2/JAVA)

📑문제링크 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 💻코드 import java.util.*; class Solution { public int[] solution(String[] maps) { ArrayList list = new ArrayList(); int n = maps.length; int m = maps[0].length(); int[][] map = new int[n][m]; for(int i = 0; i < n; i++){ for(int j = 0; j < m; j++){ if(maps[i].charAt(j) == 'X') map[i]..

Algorithm/Programmers 2023.08.03

[Algorithm/Programmers] 광물 캐기 - 172927 (L2/JAVA)

📑문제링크 프로그래머스 코드 중심의 개발자 채용. 스택 기반의 포지션 매칭. 프로그래머스의 개발자 맞춤형 프로필을 등록하고, 나와 기술 궁합이 잘 맞는 기업들을 매칭 받으세요. programmers.co.kr 💻코드 class Solution { static int answer = Integer.MAX_VALUE; public int solution(int[] picks, String[] minerals) { int[][] cost = {{1, 1, 1}, {5, 1, 1}, {25, 5, 1}}; int n = 0; for(int i = 0; i < 3; i++){ n += picks[i]; } digging(new int[n], 0, picks, minerals, cost); return answer..

Algorithm/Programmers 2023.07.12
이전
1
다음
더보기
프로필사진

250x250
  • 분류 전체보기 (66)
    • CS (6)
      • Basic (1)
      • Network (5)
      • Linux (0)
    • Algorithm (59)
      • Baekjoon (51)
      • Programmers (8)

Tag

Java, 실버4, programmers, 알고리즘, Level1, 자바, 실버5, 골드3, 프로그래머스, Algorithm, gold5, Silver2, 골드5, 실버1, SILVER4, baekjoon, Silver1, gold3, 백준, 실버2,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

Archives

Calendar

«   2025/07   »
일 월 화 수 목 금 토
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

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바