Skip to content

Conversation

@akaash11
Copy link

@akaash11 akaash11 commented Sep 7, 2025

No description provided.

@super30admin
Copy link
Owner

  • Strengths:
    • The student has provided multiple solutions, including an optimized one, demonstrating a deep understanding of the problem.
    • The code is well-commented and easy to follow.
    • The use of helper functions and clear variable names enhances readability.
  • Areas for Improvement:
    • In the topological sort approach, the student could have mentioned that the solution is less efficient compared to the linear approach, which is more optimal.
    • The student could have included more comments in the linear solution to explain why the second loop checks i < celeb and knows(celeb, i) separately.
    • The student could have provided a brief explanation of why the linear solution works, especially the logic behind updating the celebrity candidate.

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