Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCreate alternate_disjoint_set.py #2302
Conversation
This code implements a disjoint set using Lists with added heuristics for efficiency Union by Rank Heuristic and Path Compression
TravisBuddy
commented
Aug 13, 2020
|
Hey @anubabajide, TravisCI finished with status TravisBuddy Request Identifier: dd13e6c0-dd07-11ea-b6e2-493429cddfc3 |
Added typehints, doctests and some suggested variable name change
TravisBuddy
commented
Aug 13, 2020
|
Hey @anubabajide, TravisCI finished with status TravisBuddy Request Identifier: c08dcc30-dd72-11ea-9bc7-ef10f4dac8ce |
|
Hey, |
|
Hey, |
|
I've fixed it @cclauss |
TravisBuddy
commented
Aug 17, 2020
|
Hey @anubabajide, TravisCI finished with status TravisBuddy Request Identifier: 39358360-e0cc-11ea-a6dd-d374b9ca78b0 |
|
@cclauss I really can't tell why its failing |
|
% python3 -m pip install black or % python3 -m pip install flake8
|
TravisBuddy
commented
Aug 21, 2020
|
Hey @anubabajide, TravisCI finished with status TravisBuddy Request Identifier: 9b5cfbe0-e3a6-11ea-bb85-f7bf5149087f |
TravisBuddy
commented
Aug 21, 2020
|
Hey @anubabajide, TravisCI finished with status TravisBuddy Request Identifier: 41ed67f0-e3a8-11ea-bb85-f7bf5149087f |
TravisBuddy
commented
Aug 21, 2020
Travis tests have failedHey @anubabajide, TravisBuddy Request Identifier: e22352e0-e3ab-11ea-bb85-f7bf5149087f |
TravisBuddy
commented
Aug 21, 2020
|
Hey @anubabajide, TravisCI finished with status TravisBuddy Request Identifier: 0f814980-e3ad-11ea-bb85-f7bf5149087f |
|
You should be able to run these tests on your own computer with: |
|
I was trying to avoid cloning to my local computer because of space. |
|
Oh, wow. |
TravisBuddy
commented
Aug 28, 2020
Travis tests have failedHey @anubabajide, TravisBuddy Request Identifier: cb2d7f40-e930-11ea-ae3c-2d16223a9f65 |
|
Finally it passes. |
anubabajide commentedAug 13, 2020
•
edited by cclauss
This code implements a disjoint set using Lists
with added heuristics for efficiency
Union by Rank Heuristic and Path Compression
Describe your change:
Checklist:
Fixes: #{$ISSUE_NO}.