Skip to content

Graph 1 completed - #802

Open
Keerthi0910 wants to merge 4 commits into
super30admin:masterfrom
Keerthi0910:master
Open

Keerthi0910 wants to merge 4 commits into
super30admin:masterfrom
Keerthi0910:master

Conversation

@Keerthi0910

Copy link
Copy Markdown

No description provided.

@super30admin

Copy link
Copy Markdown
Owner

Find the Town Judge (Problem1.java)

The student's solution is excellent and matches the reference solution in both approach and efficiency. The implementation is clean and correct.

VERDICT: PASS


The Maze (Problem2.java)

Your approach to the problem is correct - using BFS with the rolling mechanic and marking visited cells with -1 is the right strategy. However, your code has critical syntax errors that prevent it from compiling:

  1. Fix array literal syntax: new int[]{start[0], start[1]} needs both opening and closing brackets
  2. Fix array access syntax: maze[start[0]][start[1]] = -1; needs both brackets
  3. Add missing semicolons: Every statement in Java must end with ;
  4. Fix the double &&: Remove the extra ampersand
  5. Fix the typo: "desitination" should be "destination"
  6. Properly close all braces: Each opening { needs a matching closing }. The for loop, while loop, and method all need proper closing braces
  7. Improve indentation: Proper indentation makes it easier to spot missing braces

I recommend rewriting the solution carefully, paying close attention to:

  • Matching every opening brace with a closing brace
  • Ending every statement with a semicolon
  • Using consistent indentation to visually track code blocks

Try compiling your code after writing it to catch these errors early.

VERDICT: NEEDS_IMPROVEMENT

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