Array Problems
Problem 1: Remove Duplicates from Sorted Array Explanation: Given an integer array nums sorted in non-decreasing order, remove the duplicates in-place such that each unique element appears only once. The relative order of the elements should be kept the same. Approach: Time & Space Complexity: Java Implementation: Example: Input: Output: Edge Cases Considered: Problem 2: Maximum Subarray Explanation: Given an integer array nums, find the contiguous subarray (containing at least…