Meluu_의 코딩 공부 일지

  • 홈
  • 태그
  • 방명록

Set 1

백준 9466 번 : 텀 프로젝트 [자바]

🧫 문제 분석 ✔️ 출처텀 프로젝트 골드 3 📖 문제 그래프 탐색을 하되 Stack + Set 조합으로 풀었다. 근데 DFS로 푸는게 정석인가보다. test case142 1 2 3answer : 2wrong : 무한루프 DFS로 다시 풀었을때 시간 초과가 났던 문제의 코드 private static void dfs(int current) { visited[current] = true; int next = students[current]; if (!visited[next]) { dfs(next); } else { if (finished[next]) return; // 이미 팀 구성을 한 학생이면 더이상 탐..

baekjoon 2025.06.01
이전
1
다음
더보기
프로필사진

Meluu_의 코딩 공부 일지

Mellu_'s velog
  • 분류 전체보기 (290) N
    • JAVA (5)
    • Back-End (54)
      • Spring Advance & Boot (18)
      • HTTP (5)
      • JPA (15)
      • QueryDsl (1)
      • Flask (0)
      • Spring (7)
      • DB (6)
    • CS (8)
      • 자료구조 (7)
      • 알고리즘 (1)
    • programmers (65) N
      • DFS-BFS (9)
      • Kakao (6) N
      • Lv 1 (14)
      • Lv 2 (24)
      • Lv 3 (8)
    • baekjoon (149)
      • Graph_Search (30)
      • DP (33)
      • BinarySearch (10)
      • Brute_Force (8)
      • Data_Structure (6)
      • String (8)
      • Greedy (11)
      • Implementation (17)
    • 문제해결 (6)
    • SQL (3)

최근글과 인기글

  • 최근글
  • 인기글

Archives

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

티스토리툴바