Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Submitting Graph-1 - #773

#773
Open
akshay4121 wants to merge 1 commit into
super30admin:mastersuper30admin/Graph-1:masterfrom
akshay4121:masterakshay4121/Graph-1:masterCopy head branch name to clipboard
Open

Submitting Graph-1#773
akshay4121 wants to merge 1 commit into
super30admin:mastersuper30admin/Graph-1:masterfrom
akshay4121:masterakshay4121/Graph-1:masterCopy head branch name to clipboard

Conversation

@akshay4121

Copy link
Copy Markdown

No description provided.

@super30admin

Copy link
Copy Markdown
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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.