Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible Path #59

Open
Chaitralikore opened this issue Oct 25, 2023 · 2 comments
Open

Possible Path #59

Chaitralikore opened this issue Oct 25, 2023 · 2 comments

Comments

@Chaitralikore
Copy link

Given an undirected graph with n vertices and connections between them. Your task is to find whether you can come to same vertex X if you start from X by traversing all the vertices atleast once and use all the paths exactly once.

Example 1:

Input: paths = {{0,1,1,1,1},{1,0,-1,1,-1},
{1,-1,0,1,-1},{1,1,1,0,1},{1,-1,-1,1,0}}
Output: 1
Exaplanation: One can visit the vertices in
the following way:
1->3->4->5->1->4->2->1
Here all the vertices has been visited and all
paths are used exactly once.

@sejalphatangare
Copy link

Hi assign me this issue.
Sejal Phatangare
UCE2021457

@ManasiGDeshmukh
Copy link
Contributor

@sejalphatangare Happy Coding!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants