← Paytm questions
CodingReported in a candidate post, Nov 2020

Check whether a given undirected graph is a tree

Filed under Paytm

Given an undirected graph, determine whether it forms a valid tree by verifying that it is connected and contains no cycles.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Paytm questions

Collected from public candidate posts and coding forums. Updated Nov 2026.