Determine whether two nodes are related

Quick Overview

This question evaluates understanding of graph representations, reachability and connectivity concepts for ancestry relationships, including handling disconnected components and potential cycles.

Determine whether two nodes are related

Company: Google

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Technical Screen

Overview: This question evaluates understanding of graph representations, reachability and connectivity concepts for ancestry relationships, including handling disconnected components and potential cycles.

Google logo
Google
Jan 22, 2026
mediumSoftware EngineerTechnical ScreenCoding & Algorithms
38
0
Loading...