#include
using namespace std;
int main()
{
int t;
cin>>t;
int count1=0,count2=0;
while(t>0)
{
int n;
cin>>n;
int arr[n];
for(int i=0;i<n;i++)
{
cin>>arr[i];
}
int b[2n];
for (int i = 0; i < n; i++)
{
b[i] =arr[i];
}
for(int i=0;i<n;i++)
{
b[n+i]=arr[i];
}
for(int i=0;i<2n;i++)
{
if(b[i]>b[i+1])
{
count1++;
}
if(b[i]<b[i+1])
{
count2++;
}
}
}
return 0;
}
tell me further solution.on addition to this code.
Not a new code.
