companyhub
DashboardCompaniesProblemsSheetsBookmarksRevisionsAnalyticsLeaderboardCompare
Settings
Sign in
DashboardCompaniesProblemsSheetsBookmarks
Medium

Keys and Rooms

75.8% acceptance · asked by 10 companies

Solve on LeetCode
Depth-First SearchBreadth-First SearchGraph Theory

Workspace

Scratch, run, iterate — then submit on LeetCode

Custom input (stdin)

Console

Output appears here. Runs on the free Piston sandbox.

Your notes

Sign in to keep markdown notes on this problem — approach, complexity, gotchas.

Who asks this

Cadence100Graviton88Snowflake63Infosys38Apple38Google38Oracle38Microsoft25Amazon25Meta13

Related problems

Number of Islands
Medium
Course Schedule
Medium
Word Search
Medium
Course Schedule II
Medium
Binary Tree Maximum Path Sum
Hard