Click4Ai

304.

Easy

The **Image Cropping** problem involves removing a portion of an image. **Example:** Cropping the top-left 2x2 portion of a 4x4 image. **Constraints:** The input image is a 2D numpy array, and the output should be a cropped 2D numpy array. The crop size should be a positive integer.

Test Cases

Test Case 1
Input: [[1,2,3,4],[5,6,7,8],[9,10,11,12],[13,14,15,16]]
Expected: [[9,10,11,12],[13,14,15,16]]
Test Case 2
Input: [[1,2],[3,4]]
Expected: []
+ 3 hidden test cases