dsa_competitive-coding icon indicating copy to clipboard operation
dsa_competitive-coding copied to clipboard

Added FindPathsExists

Open HimanshuSahu-1 opened this issue 4 months ago • 0 comments

I have added a more question in this playlist inside graph playlist. Problem statement is as follows-

There is a bi-directional graph with n vertices, where each vertex is labeled from 0 to n - 1 (inclusive). The edges in the graph are represented as a 2D integer array edges, where each edges[i] = [ui, vi] denotes a bi-directional edge between vertex ui and vertex vi. Every vertex pair is connected by at most one edge, and no vertex has an edge to itself.

You want to determine if there is a valid path that exists from vertex source to vertex destination.

Given edges and the integers n, source, and destination, return true if there is a valid path from source to destination, or false otherwise.

HimanshuSahu-1 avatar Feb 14 '24 16:02 HimanshuSahu-1