Skip to content

Solution for town judge and the maze#766

Open
ravithakur2k wants to merge 2 commits intosuper30admin:masterfrom
ravithakur2k:master
Open

Solution for town judge and the maze#766
ravithakur2k wants to merge 2 commits intosuper30admin:masterfrom
ravithakur2k:master

Conversation

@ravithakur2k
Copy link

No description provided.

Implement BFS to find if a ball can reach the destination in the maze.
Add detailed comments explaining the algorithm for finding the town judge.
@super30admin
Copy link
Owner

Strengths:

  • Good understanding of the indegree/outdegree concept for the town judge problem.
  • Correct implementation of BFS approach for the maze problem (conceptually).
  • Appropriate use of data structures (queue for BFS).

Areas for Improvement:

  • Pay close attention to variable naming consistency (row vs r, col vs c).
  • Be careful with method names (popLeft() vs popleft()).
  • Double-check boundary conditions in maze traversal.
  • For the maze problem, consider using a separate visited matrix instead of modifying the input.
  • Review time complexity analysis for graph traversal problems.

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