Find minimum length for Maximum Mex Subsequence
Given an array A[] consisting of N integers. You have to choose a subsequence from the given array such that the mex of that chosen subsequence is maximum. The task is to return the minimum length of such subsequence. Examples: Input: N = 7, A[] = {1, 2, 1, 2, 1, 4, 0}Output: 3Explanation: We can ch