Length of longest consecutive sequence that can be formed from Array by converting 0s
Given an array arr of N integers, the task is to calculate the length of longest sequence of consecutive integers that can be formed from the array. It is also given that 0's in the array can be converted to any value. Example: Input: N = 7, A = {0, 6, 5, 10, 3, 0, 11}Output: 5Explanation: The maxim