Checking for Consecutive K-Length Subsequence
Given an array arr[] of size N, the elements are non-decreasing order, the task is to determine if it's possible to form one or more subsequences such that elements in each subsequence are a consecutive increasing sequence of K length at least. Examples: Input: arr = {1, 2, 3, 3, 4, 4, 5, 5}, K = 3O