Amount of Time for Binary Tree to Be Infected at ServiceNow
Medium65.1% acceptance
This problem has 50.0% frequency at ServiceNow.
Problem Description
You are given the `root` of a binary tree with **unique** values, and an integer `start`. At minute `0`, an **infection** starts from the node with value `start`. Each minute, a node becomes infected if: * The node is currently uninfected. * The node is adjacent to an infected node. Return...
Read full problem and hintsTopics
Also asked at 11 companies
More ServiceNow Questions
Longest Substring Without Repeating CharactersMediumLRU CacheMediumFind Minimum Diameter After Merging Two TreesHardFirst Missing PositiveHardGroup AnagramsMedium
View all ServiceNow questions