Skip to content

Kristina - Maple#34

Open
k0axaca wants to merge 1 commit intoAda-C16:masterfrom
k0axaca:master
Open

Kristina - Maple#34
k0axaca wants to merge 1 commit intoAda-C16:masterfrom
k0axaca:master

Conversation

@k0axaca
Copy link

@k0axaca k0axaca commented Jul 21, 2022

No description provided.

Copy link

@kyra-patton kyra-patton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐶🐾 Excellent work, Kristina. Looks like you have a solid understanding of depth first search. Let me know what questions you have.

🟢

Comment on lines +8 to +9
Time Complexity: O(N+E)
Space Complexity: O(N)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if len(dislikes) == 0:
return True

def dfs(node, parent=None):

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🐩 Very nice DFS solution!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants