companyhub
DashboardCompaniesProblemsSheetsBookmarksRevisionsAnalyticsLeaderboardCompare
Settings
Sign in
DashboardCompaniesProblemsSheetsBookmarks
Medium

Amount of Time for Binary Tree to Be Infected

65.4% acceptance · asked by 12 companies

Solve on LeetCode
Hash TableDepth-First SearchTreeBinary TreeBreadth-First Search

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

Blinkit100Sharechat100Servicenow63Phonepe50Adobe
50
Flipkart50
Amazon38
Microsoft38
Uber25
Goldman Sachs25
Google13
Bloomberg13

Related problems

Two Sum
Easy
LRU Cache
Medium
Longest Substring Without Repeating Characters
Medium
Group Anagrams
Medium
Top K Frequent Elements
Medium