본문 바로가기

wgrgwg-dev

검색하기
wgrgwg-dev
프로필사진 wgrgwg

  • 전체보기 (398)
    • 알고리즘 (363)
      • BOJ (359)
      • LeetCode (4)
    • 일상 (0)
    • 활동 (11)
      • 우테코-프리코스 (3)
      • 모각코 (7)
      • 프로젝트 (1)
    • 기술 (19)
      • Linux (1)
      • Spring (8)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2026/02   »
일 월 화 수 목 금 토
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
Tags
  • 이분탐색
  • 우선순위큐
  • 에라토스테네스의체
  • 실랜디
  • LIS
  • 위상정렬
  • Java
  • 트리
  • dp
  • dfs
  • 다익스트라
  • 그리디
  • spring
  • 가장긴증가하는부분수열
  • MST
  • 투포인터
  • somniverse
  • 오블완
  • 브루트포스
  • 크루스칼
  • 분할정복
  • C++
  • 구현
  • 시뮬레이션
  • BFS
  • 스택
  • 백트래킹
  • 골랜디
  • 플로이드-워셜
  • 백준
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록LeetCode75 (1)

wgrgwg-dev

[LeetCode] 841. Keys and Rooms [Java]

841. Keys and RoomsThere are n rooms labeled from 0 to n - 1 and all the rooms are locked except for room 0. Your goal is to visit all the rooms. However, you cannot enter a locked room without having its key.When you visit a room, you may find a set of distinct keys in it. Each key has a number on it, denoting which room it unlocks, and you can take all of them with you to unlock the other room..

알고리즘/LeetCode 2026. 1. 20. 16:27
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바