Skip to content

Completed Graph-1#759

Open
srilekhad wants to merge 1 commit intosuper30admin:masterfrom
srilekhad:master
Open

Completed Graph-1#759
srilekhad wants to merge 1 commit intosuper30admin:masterfrom
srilekhad:master

Conversation

@srilekhad
Copy link

No description provided.

@super30admin
Copy link
Owner

  • Strengths:
    • Both solutions are correct and efficient, matching the expected time and space complexities.
    • The code is clean, well-commented, and follows good practices.
    • The use of instance variables in "maze.java" improves readability and reduces parameter passing.
  • Areas for Improvement:
    • In "maze.java", consider adding a check at the start to see if the destination is the same as the start, which could save some computation in trivial cases.
    • In "findthetown.java", the comment could be slightly more detailed to explain why the judge must have indegrees[i] == n-1.

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