Uh oh!
There was an error while loading. Please reload this page.
Updated check_bipartite_graph_dfs.py - #9525
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
debnath003
commented
Oct 2, 2023
@tianyizheng02 please merge my PR, awaiting your review |
debnath003
commented
Oct 3, 2023
@tianyizheng02 awaiting your review #9525 |
debnath003
commented
Oct 3, 2023
@tianyizheng02 could you please approve my PR review #9525? This is my first time contributing in this repository. Also please include hacktoberfest accepted label! Thanks again |
debnath003
commented
Oct 3, 2023
@tianyizheng02 please look after this PR #9525 and merge this PR for hacktoberfest |
debnath003
commented
Oct 3, 2023
@tianyizheng02 please look after #9525 and merge the PR for hacktoberfest |
debnath003
commented
Oct 4, 2023
@tianyizheng02@cclauss please look after this PR #9525 and merge the PR, so that it can be eligible for hacktoberfest. Please also add hacktoberfest-accepted label. Thanks a lot! |
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Christian Clauss <cclauss@me.com>
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Christian Clauss <cclauss@me.com>
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
cclauss
commented
Oct 4, 2023
if you do |
for more information, see https://pre-commit.ci
debnath003
commented
Oct 4, 2023
I have actually done that in vscode, but the change that you have given seemingly shows some format errors, which is alright; Apart from that is the code okay, as edited by the changes that you have suggested? @cclauss |
debnath003
commented
Oct 4, 2023
@cclauss looks like the code is having some error, in build, could you please point out the error? |
debnath003
commented
Oct 4, 2023
@cclauss I have made the required changes, and the checks are also correct, could you please review that and merge the PR? It will be very helpful in hacktoberfest also if you add the hacktoberfest-accepted label |
debnath003
commented
Oct 5, 2023
@cclauss@tianyizheng02 please someone check the review and approve my PR! Awaiting for review! |
This is complex code so let's use self-documenting function and variable names to help readers to understand. We should not shorten names to simplify the code formatting but use understandable name and leave to code formatting to psf/black. I am not sure if `nbor` was supposed to be `neighbour`. ;-)
This is complex code so let's use function and variable names that are self-documenting to help readers understand. We should not shorten names to simplify the code formatting but use understandable names and leave the code formatting to psf/black. I am unsure if |
debnath003
commented
Oct 5, 2023
All the checks have passed! @cclauss |
debnath003
commented
Oct 5, 2023
I actually did it intentionally, so that my formatting can be correct according to the ruff linter 😅 @cclauss |
debnath003
commented
Oct 5, 2023
@cclauss could you please check this PR once again? |
cclauss
commented
Oct 5, 2023
https://docs.astral.sh/ruff/faq/#is-ruff-compatible-with-black ;-) They both run in our Python/.pre-commit-config.yaml Lines 18 to 26 in 87494f1 |
debnath003
commented
Oct 5, 2023
I think I forgot it 😅 |
Please add hacktoberfest-accepted label so that it can be accepted in hacktoberfest @cclauss |
cclauss
commented
Oct 5, 2023
Hacktoberfest knows this repo... They will accept this automatically but just in case... |
debnath003
commented
Oct 5, 2023
Thanks a lot @cclauss ! |
Describe your change:
Updated the check_bipartite_graph_dfs.py in the graph folder which will reduce the time complexity. Furthermore I also included doctest module for testing some test cases included in the code.
Checklist: