20. Search in Fully Rotated Sorted 2D Matrix
β GFG solution to Search in Fully Rotated Sorted 2D Matrix: efficiently find target element in rotated sorted matrix using modified binary search technique. π
π§© Problem Description
π Examples
Example 1
Input: x = 3,
mat[][] = [[7, 8, 9, 10],
[11, 12, 13, 1],
[2, 3, 4, 5]]
Output: true
Explanation: 3 is located at the 3rd row and 2nd column.Example 2
π Constraints
β
My Approach
Modified Binary Search on Rotated Matrix
π Time and Auxiliary Space Complexity
π§βπ» Code (C++)
β Code (Java)
π Code (Python)
π§ Contribution and Support
πVisitor Count
Last updated