Skip to content

Fire - Anna#2

Open
annakim93 wants to merge 1 commit intoAda-C14:masterfrom
annakim93:master
Open

Fire - Anna#2
annakim93 wants to merge 1 commit intoAda-C14:masterfrom
annakim93:master

Conversation

@annakim93
Copy link

No description provided.

Copy link

@CheezItMan CheezItMan left a comment

Choose a reason for hiding this comment

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

Nice work Anna. This is a good BFS implementation. Well done!

Comment on lines +8 to 15
# Time Complexity: O(N+E) -- visit every single node and every one of its edges
# >> Outer loop: O(n) where n is size of input array
# >> Inner loop: O(e) where e is the number of edges
# Space Complexity: O(N)
# >> Queue depends on size of input array
# >> groupings array will be size of input array

def possible_bipartition(dislikes)

Choose a reason for hiding this comment

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

👍 This works, well done!

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