Google | Phone Screen | Max Size of Islands in a Tree

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-10-05Added By Anonymous
Source: Link

Company: Google
Role: unknown
Interview Stage: Phone Screen
Location: unknown
Year: unknown

Original Post Content:

My friend was asked this question in Google phone screen.

Given a tree having nodes with value 0 and 1. Write a function to return the max size of island?

Comments