C ++ program to find the length of smallest array begin with x , having y , ends with z and having absolute difference between adjacent elements <= 1.
#include <bits/stdc++.h> NEW_LINE using namespace std ;