Skip to content

Conversation

@nikhilsaimarri
Copy link

No description provided.

@super30admin
Copy link
Owner

  • N-Queens: Excellent job! The solution is efficient and correctly implemented. The use of sets for columns and diagonals is a great optimization.
  • Word Search: The approach needs improvement. The problem is typically solved using DFS with backtracking, which is more efficient and simpler. The BFS approach with deep copying of visited arrays is not suitable for this problem due to its high time and space complexity. Consider revising the solution to use DFS with backtracking, where you mark cells as visited during the recursion and unmark them when backtracking.

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