본문 바로가기 메뉴 바로가기

즐망노트

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

즐망노트

검색하기 폼
  • 분류 전체보기 (30)
    • 코딩테스트 (19)
      • LeetCode (9)
      • BOJ (10)
    • Archive (3)
      • GitLab (2)
      • Elasticsearch (1)
    • Project (0)
      • Laravel 11 (0)
    • Area (1)
      • 육아 (1)
  • 방명록

자바 Keys and Rooms (1)
Keys and Rooms

문제 https://leetcode.com/problems/keys-and-rooms/description/ Keys and Rooms - LeetCode Can you solve this real interview question? Keys and Rooms - There 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. Whe leetcode.com 풀이 코드 class Solution { /** * 0번째 room을 방문하..

코딩테스트/LeetCode 2023. 10. 12. 19:30
이전 1 다음
이전 다음
반응형

Blog is powered by Tistory / Designed by Tistory

티스토리툴바