Skip to content

Conversation

@sejalrj
Copy link

@sejalrj sejalrj commented Nov 5, 2025

No description provided.

@super30admin
Copy link
Owner

  • For the word search problem, consider moving the sofar set inside the dfs function to avoid potential issues with multiple calls. Alternatively, use the board itself to mark visited cells, which is more memory-efficient.
  • The N-Queens solution is well done. The use of helper functions (okay_to_place, form_a_board) improves readability. However, the form_a_board function is not used in the final solution, which could be confusing. It's good practice to remove unused code.
  • Both solutions could benefit from more comments explaining the logic, especially the backtracking steps.

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