companyhub
DashboardCompaniesProblemsSheetsBookmarksRevisionsAnalyticsLeaderboardCompare
Settings
Sign in
DashboardCompaniesProblemsSheetsBookmarks
Medium
Premium

Graph Valid Tree

asked by 9 companies

Solve on LeetCode
Depth-First SearchBreadth-First SearchUnion-FindGraph 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

Zenefits100Snowflake75Linkedin50Google38Microsoft
25
Meta25
Tiktok25
Uber25
Amazon13

Related problems

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