Check if the Elements of an Array are Consecutive
Problem Statement Given an array, Check if the elements of an array are consecutive. Here, consecutive elements mean, when we take all the elements in the array they need to form a consecutive sequence. Example Input arr[]={65,68,66,64,67} Output array contains consecutive elements here, all the elements in the array are …