Completed Binary-Search-1#2484
Conversation
Search inside a Rotated Sorted Array (search_in_rotated_sorted_array.java)It looks like you haven't written any code for this problem. The problem requires implementing a binary search algorithm to find a target in a rotated sorted array with O(log n) runtime complexity. Here are some steps to get started:
Since you haven't submitted any code, I encourage you to try implementing the solution. If you're stuck, refer to the reference solution for guidance, but make sure you understand each step. Good luck! VERDICT: NEEDS_IMPROVEMENT Search Inside a Sorted Array whose Length is unknown (search_in_infinte_sorted_array.java)Your solution is excellent! You've correctly implemented the algorithm for searching in an unknown-sized sorted array. Here are some strengths and minor suggestions: Strengths:
Minor Suggestions:
Overall, your solution is correct and efficient. Well done! VERDICT: PASS Search a 2D Matrix (search_2D_matrix.java)Your solution is excellent! You have correctly implemented the binary search algorithm by treating the 2D matrix as a 1D array. The use of integer division and modulus to compute the row and column indices from the mid index is correct and efficient. The code is well-structured and easy to read. There are no obvious optimizations needed beyond what you have done. Keep up the good work! VERDICT: PASS |
No description provided.