Also reported as Random Edge Set to Connect Graphs
Databricks phone-screen question, reconstructed from 2 candidate reports (April 2026 to May 2026). Tests: DFS and connected components. The write-up includes a Python solution that passes 6 test cases.