Skip to content

Submitting Graph-1#773

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

Submitting Graph-1#773
akshay4121 wants to merge 1 commit intosuper30admin:masterfrom
akshay4121:master

Conversation

@akshay4121
Copy link

No description provided.

@super30admin
Copy link
Owner

  • For "FindTheTownJudge.java":
    • Excellent job! Your solution is efficient and correctly implements the logic to find the town judge. The use of in-degree and out-degree arrays is a good approach.
  • For "TheMaze.java":
    • The DFS approach is a good start, but there are issues with the boundary checks and visited condition. Specifically, the condition if(vis[row][col] || row < 0 || row >= maze.length || col <0 || col >= maze[0].length) is redundant since vis[row][col] is checked right after. Also, the boundary checks should be done before accessing vis[row][col] to avoid array index out of bounds. Consider reordering the checks and simplifying the logic.

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