Binary-Search-1 Solution#2487
Conversation
Search inside a Rotated Sorted Array (problem1Solution.java)Your solution is well-written for problem 74 (Search a 2D Matrix), but it does not solve the problem you were given. The problem is about searching in a rotated sorted array, which requires a different approach. For the correct problem, you need to:
I suggest you revisit the problem statement and try to implement the solution for the rotated sorted array. The reference solution provided can guide you. VERDICT: NEEDS_IMPROVEMENT Search Inside a Sorted Array whose Length is unknown (problem2Solution.java)Your solution is for a different problem (Search in a Rotated Sorted Array) and does not meet the requirements of this problem. Here are the key issues:
To correct this:
Here is a corrected version in Java for your reference: VERDICT: NEEDS_IMPROVEMENT Search a 2D Matrix (problem3Solution.java)Your solution is for a different problem (Search in Infinite sorted array) and does not solve the 2D matrix search problem. Here are the main issues:
To correct this:
Your current code has good structure for binary search, but it is applied to the wrong problem. Please review the problem statement and the reference solution provided. VERDICT: NEEDS_IMPROVEMENT |
|
I followed the order given in the README file. I’ll move the code to the correct files and push the changes. |
No description provided.