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

finished - #781

#781
Open
sejalrj wants to merge 2 commits into
super30admin:mastersuper30admin/Graph-1:masterfrom
sejalrj:mastersejalrj/Graph-1:masterCopy head branch name to clipboard
Open

finished#781
sejalrj wants to merge 2 commits into
super30admin:mastersuper30admin/Graph-1:masterfrom
sejalrj:mastersejalrj/Graph-1:masterCopy head branch name to clipboard

Conversation

@sejalrj

@sejalrj sejalrj commented Dec 24, 2025

Copy link
Copy Markdown

No description provided.

@super30admin

Copy link
Copy Markdown
Owner
  • Strengths:
    • Both solutions are correct and efficiently implemented.
    • The use of BFS in Problem2.py is well-executed, with clear handling of directions and boundary checks.
    • The code is readable and follows good practices, such as using meaningful variable names and appropriate data structures.
  • Areas for Improvement:
    • In Problem1.py, consider using a single array to track both indegree and outdegree, as shown in the reference solution, to optimize space usage.
    • The comment about time complexity in Problem1.py should be placed outside the function for better readability.
    • In Problem2.py, the direction handling could be refactored into a loop to reduce code duplication, making the code more concise and easier to maintain.

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.