Completed Binary-Search-1 - #2525
ManasviReddy25 wants to merge 1 commit into
Conversation
Search in Rotated Sorted Array (Problem1.py)You have solved "Search a 2D Matrix" (LeetCode 74) instead of the assigned problem "Search in Rotated Sorted Array" (LeetCode 33). These are two distinct problems with different approaches:
Please re-read the problem statement carefully and resubmit a solution that:
VERDICT: NEEDS_IMPROVEMENT Search in a Sorted Array of Unknown Size (Problem2.py)Return ONLY the comments in the Python code block as specified. ```python Evaluation of the Student's Solution1. Correctness:The student's solution is for a DIFFERENT problem - "Search in a Rotated Sorted Array"(LeetCode 33), not "Search in a Sorted Array of Unknown Size" (LeetCode 702).The student's solution does not use ArrayReader interface, does not handle out-of-boundsreturns, and does not implement the exponential search to find bounds.This solution does NOT solve the assigned problem.2. Time Complexity:O(log n) - matches the required complexity, but for the wrong problem.3. Search Strategy:The reference solution uses exponential search to find bounds, then binary search.The student's solution uses a modified binary search for rotated arrays.4. Code Quality:The code is well-structured and readable for the problem it solves, but it's solvingthe wrong problem entirely. |
No description provided.