Skip to content

Conversation

MeetDobariya275
Copy link

No description provided.

@super30admin
Copy link
Owner

  • The main issue is that your solution addresses a different problem (searching in a 2D matrix) than what appears to be the intended problem (searching in a rotated sorted array). Make sure you understand the problem requirements before implementing a solution.
  • Your implementation for searching in a 2D matrix is correct and efficient. The approach of treating the 2D matrix as a 1D array and using binary search is well-executed.
  • The comments and code structure are good, but in the future, ensure they match the actual problem being solved.
  • If you were indeed solving the "Search in a 2D Matrix" problem, your solution would be excellent. However, for the problem described (based on the reference solution), it's not applicable.

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.

3 participants